Check documentation for the latest version of dhtmlxSuite onDrop DHTMLX Docs


fires when drag-and-drop has already been processed; besides, fires when the nodes are moved programmatically

void onDrop(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|numberif the node is dropped as a sibling, id of the item to insert the source node before
sObjectobjectdhtmlXTreeObject instance of the source tree
tObjectobjectdhtmlXTreeObject instance of the target tree


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


"sId" value after inserting into the tree may be not equal to the initial id

Back to top