jqGrid的第一负荷滤波 [英] jqgrid first load filtering

查看:104
本文介绍了jqGrid的第一负荷滤波的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在想,如果有一个jqGrid的一种方式,从一个给定的视图控制器通过一定的值/串,我已经在那里我想在第一负载筛选我的记录,然后让搜索的情况。我试图在函数的GridData旁边的SID和SORD传递值...但它只是传递一个字符串作为空,我发现一对夫妇相关的帖子,但我不能利用它们。

I was wondering if there is a way for jqgrid to pass a certain value/string from a given view to the controller, I have a case where I would like to filter my records at the first load and then allow search. I tried to pass the value in the griddata function alongside the sid and sord ... but it would just pass that string as null, I found a couple of related posts but I couldnt utilize them.

在此先感谢!

推荐答案

在一般你应该只设置过滤器 POSTDATA jqGrid的参数,并设置一个参数搜索:真正的。看<一个href=\"http://stackoverflow.com/questions/4973361/how-can-i-$p$pserve-the-search-filters-in-jqgrid-on-page-reload/4977896#4977896\">the与 rel=\"nofollow\">的演示。还有一<一href=\"http://stackoverflow.com/questions/5272850/is-there-an-api-in-jqgrid-to-add-advanced-filters-to-post-data/5273385#5273385\">answer展示了如何构建过滤器属性。

In general you should just set filters property of the postData jqGrid parameter and set one more parameter search:true. Look at the answer with the demo. One more answer shows how to construct the filters property.

这篇关于jqGrid的第一负荷滤波的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆