当我使用指定的选项时,jqGrid 出现问题。当我单击“查找”时,似乎没有任何 react 。
从 jqGrid 文档中,我了解到使用 loadonce 选项时排序和搜索是在本地完成的。排序很好,但搜索不行,它应该在本地工作还是只在服务器端工作,如果是这样怎么办?
谢谢
奥维迪乌
最佳答案
根据Search Configuration jqGrid 文档的部分:
Currently we do not have module for searching on local data i.e when a datatype options is set to local. All the searching is done server side.
因此,您将需要使用服务器端数据源实现搜索。您应该能够按照 jqGrid 站点上的示例将至少其中的第一部分放在一起。
更新
从 3.7 开始,jqGrid 现在支持数据的本地搜索。请在 Search Configuration 上查看相同的链接和 jqGrid Demos在
New in version 3.7
部分下想要查询更多的信息。
关于search - jqGrid - 使用数据类型 :local Or loadonce: true 时如何搜索,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2584758/