var cFilter = {
"groupOp": "AND",
"rules":
[
{ "field": "accountname", "op": "eq", "data": "06"}
]
};
$('#jqGrid').setGridParam({
postData: {
filters: cFilter
}
});
这是否会获得jqGrid中的过滤数据,因为我似乎无法使其正常工作?
答案 0 :(得分:0)
我认为您应该做以下事情:
var cFilter = {
groupOp: "AND",
rules: [
{ field: "accountname", op: "eq", data: "06"}
]
};
$('#jqGrid').setGridParam({
search: true, // to force searching
postData: {
filters: JSON.stringify(cFilter);
}
});
请查看the answer以获取更多详细信息。