DHTMLxTree Drag tree1-tree2 not tree2-tree1

I want to make two tree menu’s but I’m not sure what’s the best approach.

I want to make one tree lets say “tree1” with “child” dragBehavior and another tree lets say “tree2” with dragBehavoir “sibling”.

It needs to be possible to drag items form “tree1” into “tree2” but not from “tree2” back to “tree1”.

What’s test approach to do this?

Hi,

you may set onDragIn or onDrag handler for the tree1. If this handler doesn’t return true, dragging is canceled:

tree1.attachEvent(“onDragIn”,function(sourceId,targetId,sourceObj,targetObj){
return sourceObj==this;
})

Great. This approach is working fine. Thanks for the support!