Extjs4.1怎么给tree的每个节点都加上复选框

如题所述

第1个回答  推荐于2016-07-11
在store加checked属性
var store = Ext.create('Ext.data.TreeStore', {
root: {
expanded: true,
children: [
{ text: "detention", leaf: true, checked: true },
{ text: "homework", expanded: true, children: [
{ text: "book report", leaf: true },
{ text: "algebra", leaf: true, checked: false}
] },
{ text: "buy lottery tickets", leaf: true }
]
}
});本回答被提问者和网友采纳

extjs4.1中如何实现点击左边的树,在右边展现相应的页面?给个简单的例...
Ext.create('Ext.panel.Panel', { width: 500,height: 300,title: 'Border Layout',layout: 'border',items: [{ title: 'South Region is resizable',region: 'south', \/\/ position for region xtype: 'treepanel',height: 100,store : Ext.create('Ext.data.TreeStore',{ root:{...

如何让Extjs4.1中的treegrid和treestore实现分页
Extjs treeGrid分页实例,项目中用到,拿出来跟大家分享一下,主要是通过两个store实现。[javascript] view plaincopy ProTreeGrid = Ext.extend(Ext.tree.Panel, { _baseParam : { process : '项目立项',isShow : 'true',start : 1 },constructor : function(_config) { if (_config == null...

相似回答