Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tim Robbins on Nov 15, 2007 10:10
open dhtmlx forum
There is no onRowDeSelect event

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?
Answer posted on Nov 16, 2007 01:51
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
    });

Answer posted on Nov 16, 2007 05:41
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?
Answer posted by Stanislav on Nov 16, 2007 08:55
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.
Attachments (1)