Re: [qooxdoo-devel] Set open property of tree item.

2010-05-11 Thread MartinWittemann
Hello Alexander, I'm note really surprised that it does not work after taking a look at your code. Let me explain why: You are mixing things up here a bit. The nodes you store in your treeData array are customTreeNode's. You pass these custom tree nodes to the controller as model. So the

Re: [qooxdoo-devel] Set open property of tree item.

2010-05-11 Thread alexander.volik
Hm... So, is getSelection() metod of qx.ui.tree.Tree and qx.data.controller.Tree returns the same result? -- View this message in context: http://qooxdoo.678.n2.nabble.com/Set-open-property-of-tree-item-tp5029363p5035491.html Sent from the qooxdoo mailing list archive at Nabble.com.

Re: [qooxdoo-devel] Set open property of tree item.

2010-05-11 Thread MartinWittemann
No, the one on the tree returns the tree folder and the controller method returns the selected models in a data array. M. -- View this message in context: http://qooxdoo.678.n2.nabble.com/Set-open-property-of-tree-item-tp5029363p5035988.html Sent from the qooxdoo mailing list archive at

Re: [qooxdoo-devel] Set open property of tree item.

2010-05-11 Thread MartinWittemann
No, the one on the tree returns the tree folder and the controller method returns the selected models in a data array. M. -- View this message in context: http://qooxdoo.678.n2.nabble.com/Set-open-property-of-tree-item-tp5029363p5035987.html Sent from the qooxdoo mailing list archive at

[qooxdoo-devel] Set open property of tree item.

2010-05-10 Thread alexander.volik
I have a tree with tree items described as qx.Class.define(geoeat.customTreeNode, { extend : qx.ui.tree.TreeFolder, construct : function () { this.base(arguments); this.setChildren(new qx.data.Array()); }, properties : { name : { check: String, init : ,

Re: [qooxdoo-devel] Set open property of tree item.

2010-05-10 Thread Christian Hagendorn
Am 10.05.2010 10:04, schrieb alexander.volik: I have a tree with tree items described as qx.Class.define(geoeat.customTreeNode, { extend : qx.ui.tree.TreeFolder, construct : function () { this.base(arguments); this.setChildren(new qx.data.Array()); }, properties : {

Re: [qooxdoo-devel] Set open property of tree item.

2010-05-10 Thread alexander.volik
Christian Hagendorn wrote: setOpen is a method with a boolean parameter [1]. Please try: this.treeController.getSelection().getItem(0).setOpen(true) Of course, I use setOpen with boolean parameter, but there is no result of this -- View this message in context:

Re: [qooxdoo-devel] Set open property of tree item.

2010-05-10 Thread Christian Hagendorn
Am 10.05.2010 17:09, schrieb alexander.volik: Christian Hagendorn wrote: setOpen is a method with a boolean parameter [1]. Please try: this.treeController.getSelection().getItem(0).setOpen(true) Of course, I use setOpen with boolean parameter, but there is no result of this

Re: [qooxdoo-devel] Set open property of tree item.

2010-05-10 Thread alexander.volik
Sample code http://tinyurl.com/353dj4y -- View this message in context: http://qooxdoo.678.n2.nabble.com/Set-open-property-of-tree-item-tp5029363p5031497.html Sent from the qooxdoo mailing list archive at Nabble.com.

Re: [qooxdoo-devel] Set open property of tree item.

2010-05-10 Thread rsantiagopaz
works with tree.getRoot().getChildren()[0].setOpen(true); I think Item1 and tree.getRoot().getChildren()[0] are not reference to the same folder widget. I think the controller reinterpret treeData[0] like a model, and build other nodes. But I am not sure about this conclusion... (sorry the