Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Richard White on Oct 08, 2007 16:37
open dhtmlx forum
On Row Select

is it possible in the onrowselect method (or similar) to get the previous row that was selected before they clicked a new row?

thanks
Answer posted on Oct 09, 2007 13:15
Grid has additional event - onBeforeSelect which provides two params - row which will be selected, row which was selected before
Please beware that this event is blocable, so you need to return true from it, to confirm selection.

grid.attachEvent("onBeforeSelect",function(new_id,previous_id){
    return true;
});
Answer posted by richard white on Oct 09, 2007 16:25
ok thanks very much