In the version infragistics 16.1 in my razor web page I have multiselection combo with checkbox and selectevalues by property model (array of string)
@Html.Infragistics().ComboFor(m => m.Reparto).ID("comboReparto").DataSourceUrl("GetComboReparto").SelectedValues(Model.RepartiSel).TextKey("Codice").ValueKey("Codice").ItemTemplate("<span class='comboItem'>${Codice} - ${Descr}</span>").MultiSelection(ComboMultiSelection.OnWithCheckboxes).DataBind().DropDownWidth(300).Width("200px").Render()
In the version 17.2 how can I do?
Hello Aldo,
I have made you a sample which is showing how you can achieve multi selection with enabled checkboxes and initially selected values.
You can find it in the attachment.
If you have further questions, please contact us again.
igCombo-with-multiSelCheckbox-initially-SelectedValues.zip
hello, with your example I managed to load the selected values. I have the problem now that at the time of the Ajax call to load the grid, the comboboxes lose the selectionWhy?Thank youSilvia
Could you please be more precise?
Are the combo is in the grid? Does the Ajax call is connected only to the grid or it affects the combo too?
It will be highly appreciate if you could send me an isolated working sample which reproduce the issue, because I'm unable the guess what exactly is your approach.
I'm looking forward your reply.
Now I can selected values and filter grid but with another combobox with datasource filtered by values of first combox not selected values by model
show the upload file
https://drive.google.com/open?id=1nE4vx0T56kZmp-WCLM4e1VxU-bTxj5S5
It is normal to lose to selection when you change the dataSource of the component because the component could not know what the dataSource would be so there is no logic to leave the selection of the unknown coming data.
I see that you are trying to achieve the approach of the cascading combo so you can refer to the sample and try to apply it into you application.
As far as I understand this was your questions. If you have more, please give me more descriptions and clear information of what are your struggles.