Extjs 4 treestore
场景:extjs4的有关问题 关于treestore的
extjs4的问题 关于treestore的
这段代码是完成一个树控件的。 现在 我想通过id查找到对应的itemdata
------解决方案--------------------
store.getNodeById()
extjs4的问题 关于treestore的
- JScript code
var store = Ext.create('Ext.data.TreeStore', { proxy: { type: 'ajax', url: 'FoundationManage.ashx' }, root: { text: '', cls: "nodecls", expanded: true, parentId: 'parentId' }, folderSort: true }); tree = Ext.create('Ext.tree.Panel', { store: store, renderTo: 'treeDiv', height: 380, width: '100%', border: 0, frame: false, bodyStyle: "background-color:#E2F2FD;", useArrows: false, rootVisible: false, layout: { type: "fit", align: "right" } });
这段代码是完成一个树控件的。 现在 我想通过id查找到对应的itemdata
------解决方案--------------------
store.getNodeById()