公告
财富商城
积分规则
提问
发文
2019-06-15 19:02发布
地球回转人心会变
I need to get the exact same thing the jqGrid passes on the GET/POST _search parameter.
How can I do this?
var search = grid.getGridParam("postData").search;
...works for me.
$('#myGrid').getGridParam("postData").filters;
will give you a string (i don't know why string. why not JSON)
"{"groupOp":"AND","rules":[{"field":"Name","op":"bw","data":"a"}]}"
rules have the search criteria. If i have multiple search criteria, all would be there
"{"groupOp":"AND","rules":[{"field":"Name","op":"bw","data":"a"},{"field":"Description","op":"bw","data":"d"}]}"
Just to close this question I did this this the following line:
grid.getGridParam("postData").filters;
With this I get the filter expression the jqGrid generates when we're applying filters on its data.
最多设置5个标签!
...works for me.
will give you a string (i don't know why string. why not JSON)
rules have the search criteria. If i have multiple search criteria, all would be there
Just to close this question I did this this the following line:
With this I get the filter expression the jqGrid generates when we're applying filters on its data.