extjs tree 节点不能收缩 20
extjstree动态添加的节点不能收缩varroot=newExt.tree.AsyncTreeNode({text:'测试树根节点',id:'root',loader...
extjs tree 动态添加的节点不能收缩
var root = new Ext.tree.AsyncTreeNode({
text : '测试树根节点',
id : 'root',
loader : new Ext.tree.TreeLoader({
dataUrl : 'test.jsp'
})
});
var tree = new Ext.tree.TreePanel({
title : '我的测试树',
renderTo : 'MyEmpGrid',
root : root
});
tree.render();
tree.expand(false, false); 展开
var root = new Ext.tree.AsyncTreeNode({
text : '测试树根节点',
id : 'root',
loader : new Ext.tree.TreeLoader({
dataUrl : 'test.jsp'
})
});
var tree = new Ext.tree.TreePanel({
title : '我的测试树',
renderTo : 'MyEmpGrid',
root : root
});
tree.render();
tree.expand(false, false); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询