For some reason, the moveItem function calls the draghandler in my application (with idTo as a parent of the given idTo parameter in moveitem function). This is not desired because this causes recursive moving of nodes (because i have custom moveitem calls for diffirent targetnode levels).
This results in a stack overflow error in IE, and a “too much recursion” error in Firefox.
Is there any way to make moveItem not call the draghandler function?
For some reason, the moveItem function calls the draghandle
Unfortunately this is expected behavior and it can’t be changed. The moveItem commands threated in same way as d-n-d and generates the same events.
>>This is not desired because this causes recursive moving of nodes (because i have custom moveitem calls for diffirent targetnode levels).
You can use some way of custom flag to ignore custom calls
tree.attachEvent(“onDrag”,function(params){
if (tree.skip_event) return true;
tree.skip_event=true;
… any custom calls here …
tree.skip_event=false;
});