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.
Asked
Active
Viewed 1,874 times
1 Answers
2
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();

Cody Gray - on strike
- 239,200
- 50
- 490
- 574

Oleg
- 220,925
- 34
- 403
- 798
-
Thanks. That works however, the 'mask overlay' that's on the main grid remains enabled, even after the search popup has been hidden. I can probably remove the overlay using Firebug and using similar tactic, but was wondering if there is a published way to do it. thanks. – Jack Dorsey Feb 14 '11 at 14:21
-
@Jack Dorsey: You can hide the overlay with `$(".jqgrid-overlay").hide();` or `$("#lui_list").hide();` where the id="lui_list" will be constructed from the "lui_" prefix an "list": the id of the `
` element of the jqGrid.
– Oleg Feb 14 '11 at 14:30 -
1@Jack Dorsey: By the way it you don't like the mask overlay you can use search option 'overlay:false', then the overlay will not seen at all. – Oleg Feb 14 '11 at 14:42