onBeforeRowDragMove

fires before a task is dragged to a different position

boolean onBeforeRowDragMove(string|number id,string|number parent,number tindex){ ... };

Parameters

idstring|numberthe id of the task to move
parentstring|numberthe parent id
tindexnumberthe index of the position in the parent branch that the task will be moved to

Returns

booleandefines whether the default action of the event will be triggered (true) or canceled (false)

Example

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

Details

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