首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

extjs4的有关问题 关于treestore的

2012-07-05 
extjs4的问题 关于treestore的JScript codevar store Ext.create(Ext.data.TreeStore, {proxy: {type:

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()

热点排行