IGeneralSelectorDataProviderGetSelectedItems Method |
Transforms the selected values collection into the selector items (value/text) collection.
Namespace: Kentico.Components.Web.Mvc.FormComponentsAssembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax IEnumerable<GeneralSelectorSelectListItem> GetSelectedItems(
IEnumerable<GeneralSelectorItem> selectedValues
)
Parameters
- selectedValues
- Type: System.Collections.GenericIEnumerableGeneralSelectorItem
The selected values to be displayed in the selector when it loads.
Return Value
Type:
IEnumerableGeneralSelectorSelectListItemRemarks
This method is called only when the component properties dialog is opened and there are some items already selected in the selector.
This is a synchronous method since it is being used in ASP.NET MVC 5 which does not allow asynchronous child actions.
The ASP.NET Core version of this interface requires an asynchronous method instead.
See Also