1
如何根據某些條件隱藏ExtJs 4.1 TreePanel中的某些節點? 我們可以通過這樣的ExtJS的3.4隱藏節點:在ExtJs中隱藏節點4.1 TreePanel
tree.getRootNode().cascade(function() { // descends into child nodes
if(this.attributes['status'] == 100) { // test this node
this.getUI().hide() // hide this node
}
})
但這種方法在ExtJS的4.1不再支持。
如果你從商店中刪除記錄他們不會露面那個樹。如果您需要動態顯示和隱藏命令,則可以過濾商店。 – dbrin