Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Paul on Oct 31, 2008 09:12
open dhtmlx forum
Prevent drag and dropping onto self

Hi,

I have maanged to implement dragging and dropping of nodes onto external HTML controls using the code on this KB.

However, when I drop a node onto the tree itself it reorders the tree. How can I prevent nodes fro mbeing dropped onto the tree itself?

Thanks, Paul.
Answer posted by Support on Oct 31, 2008 10:04
If you need fully block drag in tree , you can use

tree.attachEvent("onDragIn",function(){
    return false;
});