读书人

extjs4的有关问题 关于treestore的

发布时间: 2012-07-05 07:59:17 作者: rapoo

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

读书人网 >JavaScript

热点推荐