Extjs chekboxtree PagingTreeLoader 多选、分页
测试使用版本:extjs3.4.0
效果图:


测试代码:
<script type="text/javascript">
Ext.BLANK_IMAGE_URL = "../../lib/ext/resources/images/default/s.gif";
Ext.QuickTips.init();
Ext.onReady(function(){
new Ext.Window({
title: "test",
width : 800,
height : 500,
items : [
{
xtype: "checkboxTree",
autoScroll : true,
rootText : 'test',
name: "nodes",
id: "nodes-tree",
dataUrl: "lawRisk/getLawRiskTree.json"
}
],
layout : 'fit',
resizable : false,
buttons : [{text:'getCheck',handler:function(){
var nodes = Ext.getCmp('nodes-tree').tree.getChecked();
alert(nodes.length);
}}]
}).show();
});
我了个去,这个有点略牛逼啊