DayPilot.Scheduler.onEventMoved

Fires after the default action (eventMoveHandling) has been executed. api=2 only.

Declaration

onEventMoved(args)

Parameters

  • args.e (DayPilot.Event)
  • args.newStart (DayPilot.Date)
  • args.newEnd (DayPilot.Date)
  • args.newResource (string)
  • args.external (boolean)
  • args.ctrl (boolean)
  • args.shift (boolean)
  • args.position (integer)
  • args.preventDefault()

Notes

The e object is already updated (it uses the newStart, newEnd, and newResource values).

Example

dp.onEventMoved = function (args) {
  dp.message("Moved: " + args.e.text());
};

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