Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by mgrimm on Dec 09, 2008 06:44
open dhtmlx forum
dhtmlxTree

When usng drag-n-drop for multiple nodes, it is there any way to determine the start of the first dropped node and also the end of the last dropped node. I need to do processing of data syncronously and the onDrag event fires for each node.
Answer posted by Support on Dec 09, 2008 08:51
There is no way to get such info in existing version, next code can be added to tree's initialization to introduce 2 new events

tree._drag_old=tree._drag;
tree._drag=function(){
       this.callEvent("onDragExecStart",[]);
       this._drag_old.apply(this,arguments);
       this.callEvent("onDragExecEnd",[]);
}

with such code you will have onDragExecStart before onDrag calling and onDragExecEnd after last onDrag executed.