Tree cloning

I am currently working on the dtmlx tree, I am having some specific requirement.



I have a tree in one div (say div1), how can I clone that tree component to another div (say div2). So that any operation in div2 should reflect in div1 and vice versa.


Hello,


there are some events in tree. Please, take a look at the event list dhtmlx.com/docs/products/dhtmlxT … html#api_a).


For example:


tree1.attachEvent(“onSelect”,doOnSelect)
tree2.attachEvent(“onSelect”,doOnSelect)
function doOnSelect(id){
if(this==tree1) tree2.selectItem(id);
else tree1.selectItem(id);
}