【发布时间】:2014-10-16 03:52:16
【问题描述】:
我已在 id 过滤框 5 中输入,并在搜索操作中选择了更大。我在服务器端获得了一个 id=5 值,但我无法为搜索运算符获得 value()。
jQuery("#list451").jqGrid({
url: 'localset.do',
datatype: "json",
height: 255,
width: 600,
colNames: ['id', 'name', 'Code'],
colModel: [{
name: 'item_id',
index: 'item_id',
width: 65,
sorttype: 'integer',
searchoptions: {
sopt: ['eq', 'ne', 'le', 'lt', 'gt', 'ge']
}
}, {
name: 'name',
index: 'name',
width: 150,
sorttype: 'string',
searchoptions: {
sopt: ['eq', 'bw', 'bn', 'cn', 'nc', 'ew', 'en']
}
}, {
name: 'item_cd',
index: 'item_cd',
width: 100
}],
rowNum: 50,
rowTotal: 200,
rowList: [20, 30, 50],
loadonce: false,
mtype: "GET",
rownumbers: true,
rownumWidth: 40,
gridview: true,
pager: '#pager451',
sortname: 'item_id',
viewrecords: true,
sortorder: "asc",
caption: "Loading data from server at once"
});
jQuery("#list451").jqGrid('filterToolbar', {
searchOperators: true
});
我试过postdata:{ filters: JSON.stringify(searchOper) }
我正在使用 jsp servlet。
请求查询字符串为:
&page=&_search=false&nd=1408689334839&rows=10&page=1&sidx=&sord=asc&id=5
如何获取id搜索运算符值?
请帮忙。
【问题讨论】:
标签: jquery jsp jqgrid jqgrid-php