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 : "",
      event: "changeName"
    },
        id : {
      check: "Integer",
      event: "changeId"
    },
    children : {
      check: "qx.data.Array",
      event: "changeChildren"
    },
  }
});

And i want to programmatically open/close item
I'm trying do it such way:
this.treeController.getSelection().getItem(0).setOpen()
but this method does nothing. 
Also method this.treeController.getSelection().getItem(0).getOpen() 
returns "false" result for even item state (opened or closed). Why?
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Set-open-property-of-tree-item-tp5029363p5029363.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to