jqGrid:在使用columnchooser添加列后更新高级搜索对话框,列下拉列表 [英] jqGrid: Update advanced search dialog, column dropdown – after adding column with columnchooser
问题描述
我对jqGrid的高级搜索有问题....从我得到的,高级搜索对话框只在调用searchGrid时创建一次。
I have an issue with the advanced search of the jqGrid…. From what I get, the advanced search dialog box is only created once, when searchGrid is called.
这意味着如果我在打开之后通过columnChooser添加一列高级searchdialog一次,下次打开高级搜索对话框时,添加的列丢失了......我想这是正常的行为......。
This means that if I add a column via columnChooser after I already opened the advanced searchdialog once, the added column is missing the next time I open the advanced search dialog… I suppose this is the normal behaviour….
所以我的问题是:有没有我可以用来更新/重新创建高级搜索对话框的任何标准函数,每次调用searchGrid时都不会丢失所有先前输入的搜索条件等。
So my question is: Is there any standard function I can use to update/recreate the advanced search dialog everytime I call the searchGrid without loosing all the previously entered search criterias etc.?
提前感谢您的支持帮助。
Thanks in advance for your help.
Fabian
推荐答案
我想你可以解决问题通过使用 recreateFilter:true
搜索对话框的选项。您可以按使用情况将该选项设置为默认设置
I suppose you can fix the problem by usage of recreateFilter: true
option of searching dialog. You can set the option as default setting by usage
$.extend($.jgrid.search, {recreateFilter: true});
这篇关于jqGrid:在使用columnchooser添加列后更新高级搜索对话框,列下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!