Free jqGrid 4.9.0 - Reset on multisearch = true 第二次重新进入时删除选择栏

Free jqGrid 4.9.0 - Reset on multisearch = true delete the selection bar when re-entering the second time

我在 jsfiddle demo $(document).ready(function () { $("#jqGrid").jqGrid({ datatype: "local", data: mydata, height: 250, width: 780, page: 1, colModel: [

放置了一个问题的演示

link 指向最新的 Free-jqGrid,但我在本地 4.9.0 版本中也注意到了这一点。

在演示中,在左下角有一个 'search' 按钮可以打开一个多搜索对话框。到目前为止一切顺利:

现在,当用户单击 "Reset & Close" 并再次重复该操作(也就是再次单击左下角的搜索图标)时,现在打开的对话框将缺少默认的第一个选项行:

感谢您的帮助,

总计

抱歉,您使用的演示包含错误的文件。例如你使用 ui.jqgrid.css

http://bester.co.il/regression/css/ui.jqgrid.css

这似乎来自一些旧版本的 jqGrid,但肯定不是来自免费 jqGrid 的 ui.jqgrid.css。我没有验证您包含的其他文件,只是将演示中的所有 URL 替换为来自 CDN 或 GitHub 的源。生成的演示 http://jsfiddle.net/OlegKi/ngm5rhgp/7/ 没有您描述的问题。

已更新: 现在我意识到仅在单击“重置”按钮后问题确实存在。问题存在是因为在 postData 中将空字符串分配为 filter 的值(请参阅 the line of code). I posted now the fix 设置 undefined 值。现在问题应该解决了。谢谢报告问题!