DayPilot.Gantt.onRowMoved

Fired when the user finishes drag and drop row moving, after 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"

Example

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

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java