I have somewhat the same question as this: http://ko.infragistics.com/community/forums/p/92586/457810.aspx#457810
but I only have 1 column and there is checkbox to select the row
like this:
this checkbox column is not a datafield, but is part of the grid. It seems that there was some confusion in the post mentioned about this.
What I want now is to programmatically set the checkbox.
I've tried using
$("#grid").igGridSelection("selectRow", index);
but this just selects the row, but does not check the checkbox.
does anybody have an idea on how to check the checkbox too?
@(Html.Infragistics().Grid(Model.Companies) .ID("companyGrid") .AutoGenerateColumns(false) .Width("100%") .PrimaryKey("Id") .Height("25%") .Features(f => { f.Selection().Mode(SelectionMode.Row).MultipleSelection(true); f.Filtering().Type(OpType.Local).Mode(FilterMode.Simple).CaseSensitive(false); f.Sorting().ColumnSettings(x => x.ColumnSetting().ColumnKey("Name").CurrentSortDirection("asc")); f.RowSelectors() .EnableCheckBoxes(true) .EnableRowNumbering(false) .AddClientEvent("checkBoxStateChanged", "gridCheckBoxChanged"); }) .Columns(c => { c.For(x => x.Id).Hidden(true); c.For(x => x.Name).HeaderText("Company").Width("100%"); }) .DataSource(Model.Companies) .DataBind() .Render())
Hello Sebastian,
By default using igGridSelection.selectRow API will check the Row Selectors checkbox. I'm not sure what's the issue in your case.
Can you send your grid configuration for me to investigate, please.
Best regards,Martin PavlovInfragistics, Inc.