onBeforeDrag

fires when the user starts the drag/resize operation (version 2.1+)

boolean onBeforeDrag(string id,string mode,Event e);
idstringthe event's id
modestringthe dragging mode: "move","resize" or "create"
eEventa native event object
booleandefines whether the default action of the event will be triggered (true) or canceled (false)

Example

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

Related samples

Details

The event fires when the user clicks inside the scheduler on the element that can be dragged.

For the "create" mode, the id value is not provided ( a new event is not created yet ).

Back to top