Check documentation for the latest version of dhtmlxSuite onDrag DHTMLX Docs

onDrag

fires when the item was dragged and dropped on some other item, but before item's moving has been processed

boolean onDrag(string|number sId,string|number tId,string|number id,object sObject,object tObject);
sIdstring|numberid of the source item
tIdstring|numberid of the target item
idstring|numberid of the item before which the source node will be inserted (if the node is dropped as a sibling)
sObjectobjectdhtmlXTreeObject instance of the source tree
tObjectobjectdhtmlXTreeObject instance of the target tree
booleantrue to allow dran-and-drop start

Example

myTree.attachEvent("onDrag", function(sId, tId, id, sObject, tObject){
    // your code here
});

Back to top