jqGrid:搜索框:如何以编程方式隐藏搜索弹出窗口 [英] jqGrid: Search Box: How to hide the search popup programmatically
本文介绍了jqGrid:搜索框:如何以编程方式隐藏搜索弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用jqGrid插件及其高级搜索"功能.有没有办法以编程方式显示/隐藏搜索弹出窗口?我想根据屏幕上其他位置的用户操作来隐藏弹出窗口(如果当前正在显示).
I'm using the jqGrid plugin along with its 'advanced search' feature. Is there a way to programmatically show/hide the search popup? I'd like to hide the popup, if it's currently being displayed, based upon a user action elsewhere on the screen.
推荐答案
如果您的jqGrid具有id="list"
,则高级搜索"对话框将具有id="fbox_list"
(它将通过"fbox_"前缀和网格的ID构建).因此,要隐藏该对话框,应该足以使用:
If you have a jqGrid with id="list"
then the "Advanced Search" dialog will have id="fbox_list"
(it will be build from the "fbox_" prefix and the grid's id). So, to hide the dialog it should be enough to use:
$("#fbox_list").hide();
这篇关于jqGrid:搜索框:如何以编程方式隐藏搜索弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文