Hello,
I'm using IgGrid with the "enableCheckBoxes: true" parameter.My goal is to define rows that will be checked at initialization.I would only allow selection click on the checkbox and not click on the line.
{ name: "Selection", mode: "row", multipleSelection: true, activation: false, //Avoid the selection by clicking the row rowSelectionChanging:function(evt, ui) { return false; },},
{ name: "Paging", type: "local", pageSize: 7, /* I check first row programatically */ pagerRendering: function (evt, ui) { $("#grid1").igGridSelection("selectRow", 0); }},
The first row is checked and selected. But when I click on the checkbox already checked by default, the row does not deselect.Therefore, if I check the second line, I see the first 2 rows checked and selected instead of the first one only.
Please find an image to illustrate my issue and the jquery sample in the attached archive.
Thank you for your help,
Olivier Hélin
Thanks so much..
The above snippet of disabling any action on row selection helped me a lot..Appreciate your help.
But all these should be part of Infragistics help. Wondering whether it is not covered.