Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Sep 10, 2008 12:02
open dhtmlx forum
single click edit + onRowdblClick event

So here is my dilemma. I have single click edit mode set to true and also have onRowDblClick attached to the grid. When I double click on a cell, single click edit kicks in then onRowDblClick kicks in right after. If I want to make sure that the user wanted double click without allowing the grid to process the single click event, how would you suggest I do this?

If I use a timer between the first and second click, stage 0 in onEditCell will need to return false but when I do that onRowSelected event no long gets executed.
Answer posted by Support on Sep 12, 2008 04:48
>> how would you suggest I do this?
The only possible solution - use timeout to detect was it a real click or a part of dblclick

>> but when I do that onRowSelected event no long gets executed.
Please check attached sample

Attachments (1)
Answer posted on Sep 11, 2008 12:15
Great! Thanks, this will do!