EasyUI 通过单选框筛选combogrid数据

 

JS代码:
$(function(){
*  //项目类型        */
	$('#all').click(function(){
		$('#tollItem').combogrid({url:NTax.webPath + 'report/report!getTollItem?parentid='+10001});
	});
	$('#famo').click(function(){
		$('#tollItem').combogrid({url:NTax.webPath + 'report/report!getTollItem?parentid='+1000102});
	});
	$('#shoufei').click(function(){
		$('#tollItem').combogrid({url:NTax.webPath + 'report/report!getTollItem?parentid='+1000101});
	});

/* 
 * 收费项目下拉列表  */
	$('#tollItem').combogrid({
		panelWidth:440,   
        striped: true,   
        rownumbers:true,//序号   
        collapsible:false,//是否可折叠的   
        fit: true,//自动大小   
        pagination:true, 				//启用分页控件
        method:'post',   
		pageSize:NTax.pageSize,			//每页显示的记录条数,默认为50
	    pageList:NTax.pageList, 		//可以设置每页记录条数的列表
		loadMsg: '正在加载数据...', 			//当从远程站点加载数据时,显示的提示信息。
		idField:'itemid',
		textField:'itemname',
		url:NTax.webPath + 'report/report!getTollItem?parentid='+10001,
		columns:[[
			{field:'itemid',title:'项目编号',width:120},
			{field:'itemname',title:'项目名称',width:280}
		]]
	});
});

 

 jsp页面:

 

<tr height=30>
				<td align="right" style="margin-right:10px;" height=30>项目类型:</td>
				<td>
					<input id="all" type="radio" name="itemclass" value="10001" checked="checked"/>全部&nbsp;&nbsp;&nbsp;
					<input id="famo" type="radio" name="itemclass" value="1000102"/>罚没&nbsp;&nbsp;&nbsp;
					<input id="shoufei" type="radio" name="itemclass" value="1000101"/>收费
				</td>
			</tr>
			<tr height=30>
				<td align="right" style="margin-right:10px;" height=30>收费项目:</td>
				<td>
					<select id="tollItem" name="tollItem" style="width:270px;">
						
					</select>
				</td>
			</tr>

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值