Check documentation for the latest version 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);
sIdstring|numberid of the source item
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