everytime a row is selected, i am able to get the selected row(s) from your apis. However, if i deselect all rows, by CTRL-clicking, no event is fired, and i have no way of detecting this action. Is there another way to do this?
grid provides few events for selection contorl
onBeforeSelect - occurs before row selected
onRowSelect - occurs when row selected
onSelectStateChanged - called which row selected or unselected
so you can use
grid.attachEvent(“onSelectStateChanged”,function(){
//code here
});
I’m sorry, but your suggestion did not work. I have tried attaching the event in about 6 different ways. I’ve tried attaching it to the dom node, to the grid object. I’ve tried attaching it with various event connection toolkits. and of course, i tried attachEvent() as well, and nothing is working. Furthermore, this event is not listed in your event list, further supporting my belief that its not implemented. Can you provide some more help and maybe a working example?
Please check attached sample.
“onSelectStateChanged” event present in grid, starting from version 1.4; but it initial version was experimental so it was not included in documentation.
>>I have tried attaching the event in about 6 different ways.
The attachEvent method of grid doesn’t related to real DOM events, it used to catch inner events of component.
1195232326.zip (56.9 KB)