jamesl
December 15, 2011, 9:30am
#1
I know it is possible to cancel an onDrag event, but is it possible to cancel an onDrop event?
I need to be able to cancel the event based on the order of data in a column AFTER the drop event has been processed.
Obviously I’ve tried the usual “return false” but that doesn’t seem to work.
Olga
December 15, 2011, 9:41am
#2
To cancel onDrop event you should return false from onDragIn event handler. Please find tutorial here docs.dhtmlx.com/doku.php?id=dhtm … g_and_drop
jamesl
December 15, 2011, 10:44am
#3
I don’t think either the onDragIn or the onDragOut will work for my scenario because when either of these two events are fired, the grid hasn’t yet processed the change in the order of data/rows in the grid.
Olga
December 16, 2011, 9:09am
#4
If yo need to cancel onDrop event after row was actually landed to new target, you can simply remove it with deleteRow() method.