December 15, 2011, 9:30am
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.
December 15, 2011, 9:41am
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
December 15, 2011, 10:44am
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.
December 16, 2011, 9:09am
If yo need to cancel onDrop event after row was actually landed to new target, you can simply remove it with deleteRow() method.