ITeye博客

Extjs chekboxtree PagingTreeLoader 多选、分页

czpae86 · 2012-04-13 13:58 · EXTJS · Web前端 · Markdown

测试使用版本: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();
    });

评论(1)

  1. #1 楼 · white_crucifix · 2012-11-20 12:40

    我了个去,这个有点略牛逼啊

评论功能维护中,当前仅展示历史评论。