Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
370
Combo only sets first item in array when MultiSelectionSettings is enabled in 15.2
posted

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.