That works! May bee some data necessary for the selection model wouldn't be dumped with .getData()?
regards Sak > On Mon, Jan 4, 2010 at 09:03, <i...@saksys.de> wrote: > >> Hi Derell, >> >> thank you but i tried the same before but treeA.getSelectedNodes() has >> just an empty array [] >> >> Any other way? >> > > Are there actually any selected nodes in treeA? If so, then > getSelectedNodes() had better not be an empty array. > > For testing purposes, you can do a very inefficient array walk: > > // clonedModel is the result of the deep copy previously discussed > for (var i = 0; i < clonedModel.length; i++) > { > clonedModel[i].bSelected = false; > } > > This is not the correct long-term solution, however. You need to know > where > those selected nodes are coming from, and they'd better be from the data > model of treeA which should be in sync with the selection returned by > getSelectedNodes(). > > Derrell > ------------------------------------------------------------------------------ > 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 > ------------------------------------------------------------------------------ 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