onEventDrag

fires when the user drags/resizes events in the scheduler

void onEventDrag(string id,string mode,Event e);
idstringthe event's id
modestringthe dragging mode: "move","resize" or "new-size" (creating new events)
eEventa native event object

Example

scheduler.attachEvent("onEventDrag", function (id, mode, e){
    //any custom logic here
});

Related samples

Details

Modes description:

  • move - the user drags the event over the scheduler.
  • resize - the user resizes the event by drag-and-drop.
  • new-size - the user creates a new event by drag-and-drop.
Back to top