Ext TreePanel 刷新问题
var forTree = new Ext.tree.TreePanel( {
title: '监控列表',
id : 'molist',
height:"100%",
useArrows: true,
autoScroll: true,
animate: true,
enableDD: false,
containerScroll: true,
border: false,
rootVisible: false,
frame : true ,
root : new Ext.tree.AsyncTreeNode(),
loader:new Ext.tree.TreeLoader({
dataUrl:treeUrl,
listeners:{'load':function(){forTree.expandAll();}},
baseAttrs: {
uiProvider: Ext.tree.TreeCheckNodeUI //使用扩展复选框组件
}}),
listeners:{
"checkchange" : function(node, checked) {
node.expand();
if(checked){
//找出root节点,用于遍历root全部的子节点
var pNode = node;
record = pNode.id;
isleaf = pNode.attributes.isleaf;
recordName = pNode.text;
}else{
record = "";
recordName = "";
}
}
}});
forTree.root.reload();刷新方法
出现问题
--------------------编程问答-------------------- 虽然分数不高,但是真的很困扰我这个问题,希望大大们帮忙解答下 --------------------编程问答-------------------- 现在是不能刷新吧
补充:Java , Web 开发