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

Reply via email to