开发者

Calling the page with jqGrid with enabled search?

开发者 https://www.devze.com 2023-02-06 14:54 出处:网络
I try to call one page with jqGrid (windows.location.href=\'localhost/jqgrid?_s开发者_运维问答earch=true\') enabling search setting the parameter _search true, but it doesn\'t work as jqGrid append th

I try to call one page with jqGrid (windows.location.href='localhost/jqgrid?_s开发者_运维问答earch=true') enabling search setting the parameter _search true, but it doesn't work as jqGrid append the search parameter by itself. http://catalog.localhost/de/jqgrid/index/c_edition?_search=true&rows=10&page=1&searchField=work_id&searchOper=eq&searchString=3&_search=false&nd=1296026941396&rows=20&page=1&sidx=&sord=asc How can we solve this problem?

Thanks


The usage of windows.location.href to set url having ?_search=true seems me the wrong way. jqGrid can get per AJAX request data from the server. So you should set url parameter of the jqGrid on the new page and not set windows.location.href to the url.

Moreover the usage of _search=true parameter to start searching is also the wrong way. See links from this answer for more information.

0

精彩评论

暂无评论...
验证码 换一张
取 消