Hi Marc, IMHO the easiest way to store more information to a TreeVirtual row is to set data of a hidden column, e.g. dataModel.setColumnData(nodeId, 99, {internalId : 1}); This column '99' want be displayed but will be accessible.
But I would advise you to use qx.ui.tree.VirtualTree[1], anyway. [1] http://demo.qooxdoo.org/current/apiviewer/#qx.ui.tree.VirtualTree Gruß Mustafa Sak Applications & Integration 1&1 Internet AG Ernst-Frey-Straße 10 DE-76135 Karlsruhe -----Ursprüngliche Nachricht----- Von: marcounet [mailto:marcleb...@skynet.be] Gesendet: Montag, 4. August 2014 10:45 An: qooxdoo-devel@lists.sourceforge.net Betreff: [qooxdoo-devel] TreeVirtual: attach objects to nodes Hi Qooxdoo Team :-) I didn't find a way to attach an object (descendant of qx.core.Object) to a tree node. I do the following: var columns = ['Title', 'Description']; var tree = new qx.ui.treevirtual.TreeVirtual(columns); var dataModel = tree.getDataModel(); var nodeId = dataModel.addBranch(0, 'The Title'); dataModel.setColumnData(nodeId, 1, 'The Description'); Then I would like to create an object, containing other data that I don't want to display in the tree, but that I want to be able to access when a node is selected, for example. As the result returned by dataModel.addBranch() is an integer, I was going to do something like dataModel.getNode(nodeId) and then node.setUserData('...', ...) But that doesn't seem to exist at all... Do you guys have done that before and could you give me a hand ? Many thanks in advance ! Marc. -- View this message in context: http://qooxdoo.678.n2.nabble.com/TreeVirtual-attach-objects-to-nodes-tp7586026.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel