`
czpae86
  • 浏览: 713217 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

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();
    });

 

  • 大小: 5.4 KB
  • 大小: 11.1 KB
分享到:
评论
1 楼 white_crucifix 2012-11-20  
我了个去,这个有点略牛逼啊

相关推荐

Global site tag (gtag.js) - Google Analytics