How to get jqGrid current search criteria?

AlexCode picture AlexCode · Jun 2, 2011 · Viewed 15k times · Source

I need to get the exact same thing the jqGrid passes on the GET/POST _search parameter.

How can I do this?

Answer

AlexCode picture AlexCode · Jul 3, 2011

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.