Hi, please take a look at this small example: http://tinyurl.com/q2o7srm
In your case delegation will be the place you need to. "bindItem" will be called every time a tree item will be bound to a model and "onPool" will be called every time a tree item will be disappeared. So just add and remove "dblclick" events on this both functions. Gruß Mustafa Sak Applications & Integration 1&1 Internet AG Ernst-Frey-Straße 10 DE-76135 Karlsruhe -----Ursprüngliche Nachricht----- Von: smiler [mailto:[email protected]] Gesendet: Dienstag, 6. August 2013 11:01 An: [email protected] Betreff: Re: [qooxdoo-devel] Virtual Tree Node dblclick event Hi Mustafa, currently my Nodes have a custom property named "id" which i can get via: var selectedNodes = this.__Tree.getSelection(); var scriptid = selectedNodes.getItem(0).get("id"); all I want is a way to trigger an event when double clicking a treenode which extracts the id. When doing that via this.__Tree.addListener("dblclick", function(e) {...},this); the whole tree reacts to this event, even the empty area. The perfect solution would be to add event listeners directly to the treenodes. Greets -- View this message in context: http://qooxdoo.678.n2.nabble.com/Virtual-Tree-Node-dblclick-event-tp7584272p7584289.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. 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 your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. 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
