DayPilot.Gantt.onRowMove

Fired when the user finishes drag and drop row moving, before the default RowMove action (specified by rowMoveHandling property).

The default action can be canceled by calling args.preventDefault().

Arguments

  • args.source - holds a DayPilot.Task object representing the source task
  • args.target  - holds a DayPilot.Task object representing the target task
  • args.position(string) - the new position relative to target: "before" | "after" | "child" | "forbidden"
  • args.preventDefault() - cancels the default action

Example

dp.onRowMove = function(args) {
  alert("Task moved to: " + args.target.text() + " (" + args.position + ")");
};