EXTJS 重新异步加载数据的问题
varroot=newExt.tree.AsyncTreeNode({id:'0',text:"<b>"+"全部"+"</b>",loader:newExt.tree.T...
var root = new Ext.tree.AsyncTreeNode({
id: '0',
text: "<b>"+"全部"+"</b>",
loader: new Ext.tree.TreeLoader({
url: "/web/Json/LeftTreeMenu.aspx",
listeners: {
"beforeload": function (treeloader, node) {
treeloader.baseParams = {
id: node.id,
method: 'POST'
};
}
}
})
});
var treenode = new Ext.tree.TreePanel({
listeners:
{
"click": function (node, event) {
var treeleft = Ext.getCmp('LeftTreeView');
var treeroot = treeleft.root;
treeroot.id = node.id;
treeroot.reload();// 让根节点重新加载
treeroot.expand(true, true);
当点击根节点重新加载时,报 node.ui 为NULL, 其他节点则不报这个错误。能知道是什么原因吗
用的是 EXTJS 3.4 展开
id: '0',
text: "<b>"+"全部"+"</b>",
loader: new Ext.tree.TreeLoader({
url: "/web/Json/LeftTreeMenu.aspx",
listeners: {
"beforeload": function (treeloader, node) {
treeloader.baseParams = {
id: node.id,
method: 'POST'
};
}
}
})
});
var treenode = new Ext.tree.TreePanel({
listeners:
{
"click": function (node, event) {
var treeleft = Ext.getCmp('LeftTreeView');
var treeroot = treeleft.root;
treeroot.id = node.id;
treeroot.reload();// 让根节点重新加载
treeroot.expand(true, true);
当点击根节点重新加载时,报 node.ui 为NULL, 其他节点则不报这个错误。能知道是什么原因吗
用的是 EXTJS 3.4 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询