Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含一些项目的树面板。每当我渲染树面板时,默认情况下应该选择一个项目。
请参考此代码。这将起作用
Ext.each(Nodes, function(item, index, allNodes) { var rec = TreePanelObj.getView().getRecord(item); if() //any condition { TreePanelObj.getSelectionModel().select(index); } });