fires when a user drops a row in the grid
sid | string|number | the id of the task to move |
parent | string|number | the parent id. If specified, the tindex will refer to the index in the 'parent' branch |
tindex | number | the index of the position that the task will be moved from (the index in the whole tree) |
boolean | defines whether the default action of the event will be triggered (true) or canceled (false) |
gantt.attachEvent("onBeforeRowDragEnd", function(id, parent, tindex){
const task = gantt.getTask(id);
if(task.parent != parent)
return false;
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.