How can we hide some of the nodes in ExtJs 4.1 TreePanel based on some condition? We can hide node in ExtJs 3.4 by doing this:
tree.getRootNode().cascade(function() { // descends into child nodes
if(this.attributes['status'] == 100) { // test this node
this.getUI().hide() // hide this node
}
})
But this method is no longer supported in ExtJs 4.1.