Extjs2 的时候,选中节点的方式是
var node = treePanel.getNodeById(id)
node.select();
在Extjs4中 treePanel没有这个方法,需要通过treestore来实现
var node = treePanel.getNodeById(id)
node.select();
在Extjs4中 treePanel没有这个方法,需要通过treestore来实现
var record = treeStore.getNodeById(id)
tree.getSelectionModel().select(record);
本文介绍了从 ExtJS2 到 ExtJS4 中选中树节点方法的变化,具体展示了如何使用不同版本的 API 来实现这一功能。在 ExtJS2 中,直接通过 treePanel 的方法实现选中;而在 ExtJS4 中,则需借助 treestore 和选择模型。
1662

被折叠的 条评论
为什么被折叠?



