new Ext.tree.TreePanel({ |
id: 'tree_sq' , |
loader: new Ext.tree.TreeLoader({dataUrl: './' +ORG_URL,baseParams:{userid:userid,groupid:groupid}, |
listeners:{ |
load: function (ths,node){ |
node.eachChild( function (child){ |
if (child.attributes.checked){ |
child.expand(); |
} |
}); |
} |
} |
}), |
lines: true , |
autoScroll: true , |
root: new Ext.tree.AsyncTreeNode({ |
nodeType: 'async' , |
text: '区域树' , |
draggable: false , |
id: '0' |
}), |
rootVisible: false , |
listeners:{ |
beforedblclick : function (n,e){ |
e.stopEvent(); |
return false ; |
}, |
click: function (node){ |
|
}, |
checkchange: function (ths,checked){ |
checkAttrSyn(ths); |
checkChilds(ths); |
checkParent( this ,ths); |
}, |
beforeexpandnode: function (ths){ |
checkChilds2(ths); |
} |
} |
}) |