EXT+Js树形结构 只需要显示根目录即可。高手帮帮忙
xtype:'treepanel',id:"bhcms.Quotetreepanel",columnWidth:.35,frame:true,title:'站点名称',b...
xtype: 'treepanel',
id: "bhcms.Quotetreepanel",
columnWidth: .35,
frame: true,
title: '站点名称',
border: false,
height: 360,
autoScroll: true,
rootVisible: false,
leaf:false,
root: new Ext.tree.AsyncTreeNode({ id: "0000",leaf:true, text: "t1" }),
loader: new Ext.tree.TreeLoader({
url: "handler/LoadChannelTree.ashx",
leaf:true,
listeners: {
"beforeload": function(treeLoader, node) {
//alert(node.attributes.id);
this.baseParams.id = node.attributes.id;
}
}
}), 展开
id: "bhcms.Quotetreepanel",
columnWidth: .35,
frame: true,
title: '站点名称',
border: false,
height: 360,
autoScroll: true,
rootVisible: false,
leaf:false,
root: new Ext.tree.AsyncTreeNode({ id: "0000",leaf:true, text: "t1" }),
loader: new Ext.tree.TreeLoader({
url: "handler/LoadChannelTree.ashx",
leaf:true,
listeners: {
"beforeload": function(treeLoader, node) {
//alert(node.attributes.id);
this.baseParams.id = node.attributes.id;
}
}
}), 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询