fires before some element starts to be dragged into the scheduler from an outside DHTMLX component (only with dnd extension enabled)

boolean onBeforeExternalDragIn(HTMLElement source,object dhtmlx,HTMLElement tArea,HTMLElement tNode,Event e);
sourceHTMLElementan HTML element that will be dragged into the scheduler
dhtmlxobjecta global DHTMLX object
tAreaHTMLElementan HTML object of the scheduler's data area
tNodeHTMLElementthe target scheduler's HTML object (a column in the Day view, a section in the Timeline view, etc.)
eEventa native event object
booleandefines whether the default action of the event will be triggered (true) or canceled (false)


    //any custom logic here
    return true;


The event requires the outerdrag plugin to be activated.

The event is blockable. Return false and the external element won't be dragged to the scheduler.

See also
Back to top