ExtJS doesn't support setting Visible properties for the tree node.
Here's a workaround http://www.sencha.com/forum/showthre...ode-in-ExtJS-4
PHP Code:
setNodeVisible : function(nodeId, visible) {
var node = this.findNode(nodeId);
var view = this.getView();
var el = Ext.fly(view.getNodeByRecord(node));
el.setVisibilityMode(Ext.Element.DISPLAY);
el.setVisible(visible);
}
However, the Visible properties for a tree node would be reset after it's parent expanded.
That is, the invisible nodes would show again after it's parent expanded.
Any idea to keep the Visible properties?
Thanks in advance!