onDragEnd

fires when the drag/resize operation is finished

void onDragEnd(string id,string mode,Event e);
idstringthe event's id
modestringthe dragging mode: "move","resize" or "create"
eEventa native event object

Example

var dragged_event;
scheduler.attachEvent("onBeforeDrag", function (id, mode, e){
    // use it to get the object of the dragged event
    dragged_event = scheduler.getEvent(id); 
    return true;
});
 
scheduler.attachEvent("onDragEnd", function(id, mode, e){
    var event_obj = dragged_event;
    // your custom logic
});

See also
Back to top