Check documentation for the latest version 6.0 of dhtmlxSuite onBeforeDrag DHTMLX Docs

onBeforeDrag

fires when the item's dragging starts (the item is selected and the mouse is moving)

boolean onBeforeDrag(string|number sId){ ... };

Parameters

sIdstring|numberid of the source item

Returns

booleantrue - confirms drag-and-drop start, false - denies it (operation will not start)

Example

myTree.attachEvent("onBeforeDrag", function(sId){
    // your code here
});

Back to top