fires before the user drags a row of the grid to vertically reorder it
id | string|number | the id of the task that the user drags in the grid |
target | HTMLElement | an HTML element of the task that the user drags |
e | Event | a native event object |
boolean | defines whether the default action of the event will be triggered (true) or canceled (false) |
gantt.attachEvent("onRowDragStart", function(id, target, e) {
//any custom logic here
return true;
});
The event is fired when a task is moved by the mouse pointer in the left-hand grid, while the order_branch setting is enabled. If branch reordering is disabled, the event will never be called.
The event is blockable. Return false to cancel dragging.