onRowDragEnd

fires after the user drops a row in the grid

void onRowDragEnd(string|number id,string|number target){ ... };

Parameters

idstring|numberthe id of the task that the user has dragged in the grid
targetstring|numberthe id of the task which place the dragged row has occupied

Example

gantt.attachEvent("onRowDragEnd", function(id, target) {
    //any custom logic here
});

Related samples

Details

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.

See also
Back to top