`

easyui combogrid如何传递参数到后台

阅读更多
1. 代码如下,精测试用data带参数提交行不通,只能是queryParams 的形式

contactsComboGrid = $('#contacts_friends_id')
			.combogrid(
					{
						//url : 'personalContactsMaintainAction!queryContactsComboGrid.action?contactsId='
						//		+ id,
						url : 'personalContactsMaintainAction!queryContactsComboGrid.action',
						queryParams : {
							contactsId : contactsFriendsId
						},
						idField : 'contactsId',
						textField : 'name',
						panelWidth : 510,
						editable : false,
						collapsible : false,// 是否可折叠的
						required : true,
						method : 'post',
						fit : true,// 自动大小
						pagination : true,
						pageSize : 10,
						pageList : [ 10, 20, 30, 40, 50 ],
						fitColumns : true,
						columns : [ [ {
							field : 'name',
							title : '姓名',
							width : 100
						}, {
							field : 'telFirst',
							title : '手机',
							width : 150
						}, {
							field : 'company',
							title : '公司',
							width : 150
						}, {
							field : 'position',
							title : '职务',
							width : 100
						}, {
							field : 'contactsId',
							hidden : true
						} ] ]
					});

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics