How can I get the search parameters from jqgrid in the server side?

Posted by Jack on Stack Overflow See other posts from Stack Overflow or by Jack
Published on 2011-11-17T01:45:10Z Indexed on 2011/11/17 1:51 UTC
Read the original article Hit count: 188

Filed under:

I've been visiting this forum a lot without registering since several months ago, and I really like it. So, thanks in advance to all the members. Now I'd like to make my first question.

I've been using Jqgrid for a few time, and I've managed to have it display the rows and buttons, but now I need to do a search, a complex one, and I thought that "automatically" jqgrid would send the parameters to the server, I mean:

sField, searchField, sOper, searchOper, sValue, searchString, sFilter and/or filters

I'm not sure at all which ones it has to send, and I thought it would be just the same as it sends 'page', 'rows' and 'sord'. But I'm missing something, because, for example, I can get 'page', 'rows' and 'sord' using:

$limit = $this->getRequest()->getParam('rows', 10);

but I get nothing by using:

$params = $_REQUEST['filters']

or

$params = $this->getRequest()->getParam('sFilter');

I'm using PHP, Zend and json.

I didn't post any code because my doubt is kind of generic, but I will do it if it was needed.

I've searched a lot, and read the documentation, but I just don't see it. I will appreciate your help, thanks!

© Stack Overflow or respective owner

Related posts about jqgrid