I have the following combo:
@(Html.Infragistics().Combo() .ID("EmployeeIDs") .Virtualization(true) .AutoComplete(true) .FilteringType(ComboFilteringType.Local) .FilteringCondition(ComboFilteringCondition.StartsWith) .Width("100%") .Height("34px") .ValueKey("EmployeeID") .TextKey("EmpName") .MultiSelectionSettings(s => { s.Enabled(true); s.ShowCheckBoxes(true); }) .DataSourceUrl(Url.Action("employee-combo-data", "Common")) .DataBind() .Render() )
When I try to set the selected values in the list using $('#EmployeeIDs').igCombo('value', ModelEmployeeIDs); where ModelEmployeeIDs is a string array, only the first item in the array is selected. When I try items = $('#EmployeeIDs').igCombo('itemsFromValue', ModelEmployeeIDs); the same thing happens, only first item is returned.
Thanks, that's a good suggestion. However I found that my problem was due to user error, the control is working correctly.
Hi and thank you for posting on our forums.
I recommend using the available initialSelectedItems option for setting which items are selected in the igCombo.
Please let me know how this works for you.