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
405
Fetch data for the combobox dropdown with multiselection based on a model property.
posted

Hello,
we recently ran into a problem with igCombo, and we are not sure how to deal with it.
We want to use a multiselectable combobox dropdown with ticks defined like this:

@(Html.Infragistics()
.ComboFor(model => model.Committees)
.ID("SubTopicCommitteeCombo")
.Width("150")
.LoadOnDemandSettings(lods => lods.Enabled(true).PageSize(25))
.DataSourceUrl(Url.Action("GetComboCommittees"))
.ValueKey("CommitteeID")
.TextKey("FullTitle")
.CompactData(true)
.EnableClearButton(false)
.MultiSelectionSettings(msw => msw.Enabled(true))
.MultiSelectionSettings(msw => msw.ShowCheckBoxes(true))
.DataBind()
.Render()
)

It all works fine, until we reload the page, submit or fetch any ticked data.

Now the problem is basically:
So far, everytime we reload the page and fetch data, no matter what we previously selected, the combobox dropdown has no items ticked.
Therefore: How does the model property assigned to the combobox dropdown have to look like in C#, so the data is submitted and fetched correctly?

Thanks in advance. 

Parents Reply Children