Hi devs,

i want to "copy" data from treeA to treeB. But it seams that i'm making a
reference betwien both virtual trees.

thats my code:

var treeAData = treeA.getDataModel().getData();
treeB.getDataModel().setData(treeAData);

This would not bee a problem, but now both trees have a strange behavior.

Let me explain:

lets say treeA has node 9 selected
after my "copy" code, node 9 of treeB seams to be selected
but console.log(treeB.getDataModel().getSelectedNodes()); shows me []

but node 9 is still highlighted and cant be deselected even if i click to
may bee node 12

now treeA has a strange behavior too, node 12 of treeA is pseudo selected
(highlighted) too


So it would just help me to know how to clone one tree data to another.


regards Sak


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to