EasyUI는 콤보그리드 데이터를 단일 선택 상자로 필터링

2534 단어 easyuicombogrid
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>

 

좋은 웹페이지 즐겨찾기