onBeforeEventDrop

fires before an event is dropped

boolean onBeforeEventDrop(object context,object event){ ... };

Parameters

contextobjectan object with drop context
eventobjectHTML event

Returns

booleanreturning false will block drop operations

Example

$$("scheduler1").attachEvent("onBeforeEventDrop", function(context, e) {
  // your code here
});

Related samples

Details

The context object contains the following fields:

  • event (object) - an event object
  • id (string) - event ID
  • $resize (boolean) - optional. true if event is resized in Day mode
  • from (object) - information about source of Drag-n-Drop
  • node (node) - a node of the dragged event
  • target (node) - optional. Target of drop event (only in Day and Week modes).

Returning false from the event handler will block drop operations and their further processing.

$$("scheduler1").attachEvent("onBeforeEventDrop", function(context, e) {
  return false;
});
See also
Back to top