在 页面 加载 完后 把 根节点下的 子节点 全部 都 展开... 而不是 全部用鼠标点击
TreePanel
expandAll() 展开所有节点
自己看看api,对了,javaeye有人发了中文版的extjs2.2的api,去下多看看
http://www.iteye.com/topic/413120
tree.expandAll();
TreeNode
1.expand( [Boolean deep], [Boolean anim], [Function callback], [Object scope] ) : void
2.expandChildNodes( [Boolean deep] ) : void
TreePanel
1.expandAll() : void
2.expandPath( String path, [String attr], [Function callback] ) : void
root.expand(true)