Hi,
In the Below code we have enabled multi select option for combobox , but we need to set value in jquery/JavaScript.
@(Html.Infragistics().ComboFor(model => model.Project.ProjectId).
MultiSelectionSettings(setting => { setting.ShowCheckBoxes(false); setting.Enabled(true); })
.DataSource(Model.ProjectCodeList).TextKey("Text").ValueKey("Value").
Width("100%").Render())
Thanks Zdravko Kolev .
Hello,
In order to select items you can use methods index/value/select. Below you will find code example:
// With 'index' method $("#singleSelectCombo").igCombo("index", 0);
// With 'value' method $("#multiSelectCombo").igCombo("value", ["White", "Yellow"]);
//With 'select' method $("#checkboxSelectCombo").igCombo("select", $.makeArray( $("#multiSelectCombo").igCombo("itemsFromIndex", 0).element, $("#multiSelectCombo").igCombo("itemsFromIndex", 1).element ), {} );
Documentation:
https://www.igniteui.com/help/api/2017.1/ui.igCombo#methods