Ig Combo box – Multi select – Select All
New DiscussionHi,
I am using Ig combo with multi select option with checkboxes in ASP.NET MVC
@(Html.Infragistics()
.Combo()
.ID(“Ids”)
.MultiSelectionSettings(s => { s.ShowCheckBoxes(true); s.Enabled(true); })
.DataSource(@ViewBag.Ids.Items)
.TextKey(“Description”)
.ValueKey(“ID”)
.Width(“280px”)
.Render())
Then binding the onChange event like this:
$(“#Ids”).bind(“igcomboselectionchanging”, OnIdsSelected);
function OnIdsSelected(evt, ui) {
if(ui.items[0].data.ID == -1)
{
//Select all checkboxes
}
}
I am not sure how to select all the remaining checkboxes in the combo box when the first item is selected.
I tried $(“#Ids”).igCombo(“Items”) but this doesn’t give me all the items
Can someone please suggest the correct syntax for this?
Regards
Singh
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
1 Created On
Jul 11, 2017 Last Post
8 years, 7 months ago