fires before a row of the grid is dragged vertically to a different position

boolean onBeforeRowDragMove(string|number id,string|number parent,number tindex);
idstring|numberthe id of the task to move in the grid
parentstring|numberthe parent id
tindexnumberthe index of the position in the parent branch that the task will be moved to
booleandefines whether the default action of the event will be triggered (true) or canceled (false)


gantt.attachEvent("onBeforeRowDragMove", function(id, parent, tindex){
    // return true/false;


The event is blockable. Return false to cancel moving of a row.

The event fires only if the option order_branch is set to the "marker" value.

See also
Back to top