尝试检索过滤结果时 jqGrid 4.8.2 中未定义 JqGrid 'lastSelected' 参数

JqGrid 'lastSelected' parameter undefined in jqGrid 4.8.2 while trying to retrieve filtered results

我正在寻找从 jqgrid 获取客户端过滤数据。我看到了这个 Get all rows not filtered from jqGrid post 并尝试了 Oleg 的解决方案。但是我收到 'lastSelected' 参数的未定义错误。我正在使用 jqGrid 4.8.2 和 jQuery 1.10.2。看起来在此版本中,lastSelected 参数已被重命名或删除。由于一些其他代码依赖性,我必须使用这些版本。谁能给我一个解决方案?

提前致谢

jqGrid 4.7 在 Dec 8, 2014 Tony Tomov have changed license agreement (see jqGrid 4.7 published at Dec 16, 2014). Because of that I started so continue to develop my own fork of jqGrid based on jqGrid 4.7 (the last version available under MIT/GPLv2 licenses) under the name free jqGrid. You can download it from github. More information about it is available in readme and in wiki 发布后不久。

所以现在有可以购买的 Guriddo jqGrid JS here。所以jqGrid 4.8.2的全称是Guriddo jqGrid JS 4.8.2.

您引用的

The answer 显示了如何 "subclass" 内部 jqGrid 方法 $.jgrid.from 访问新的自定义 "lastSelected" 参数。该技术很棘手,但它适用于 旧版本的 jqGrid

如果你想使用免费的 jqGrid 4.8 或更高版本,那么你可以只使用新的 lastSelectedData 选项 ,其含义与 "lastSelected" 参数相同my old answer. At the end of readme you will find some demos. The first demo就是你所需要的。