I've looked at the AbstractTreeItem implementation, and it looks like changing the 'parent' property does nothing on its own. Rather, you have to use the 'remove' and 'add' methods (which then in turn update the 'parent' property), as indicated in the comments of my Playground code.
T. On 08/07/2013 09:49 PM, walle wrote: > I tried to create an example showing what I thought was a bug in the > Playground. To illustrate my point in the bug report. > > But now I can't create a version that works, even though it's pretty much > the same code I use in my project. > > Am I missing something obvious because I'm tired? Or is this kind of wierd? > > http://tinyurl.com/n6vlbdv > > The point is to move the images from Logos to Logos2 and back again when the > user presses the button. But nothing happens. > > > > -- > View this message in context: > http://qooxdoo.678.n2.nabble.com/Using-model-data-in-tree-to-create-context-menu-etc-tp7584277p7584310.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
