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
35
MVC igCombo MultiSelection only passing selected value
posted

I have a jquery combo that is multiselection enabled with checkboxes. After I have ticked multiple items and press the submit button my model in the controllers post action only has the combos last selected item and not the multiple selected values. The MVC razor code is as follows:

        @(Html.Infragistics().ComboFor(Function(model) model.AreasToString) _
              .ID("cboAreas") _
              .MultiSelection(ComboMultiSelection.OnWithCheckboxes) _
              .DataSource(ViewData("Areas")) _
              .ValidatorOptions(Function(m) m.OnBlur(False).OnChange(False).OnSubmit(True)) _
              .ItemSeparator("|") _
              .Mode(ComboMode.DropDown) _
              .Width("200") _
              .NullText("Select Areas") _
              .Render()
        )

Lets say my items (areas) in the above example are 'North','South','East','West'. I tick 'North' and 'West' in the combo dropdown and the combo text shows "North|West". When I submit my action only receives 'West'.