I have a JQGrid selector, where the key is a dropdown I’ve populated via JSON.
Works great, and when the user selects from the dropdown, the dropdown collapses, all is good.
What I’ve noticed, is that when the dropdown is showing and the user clicks the cancel button on the JQGrid, the dropdown still shows, even though the entire JQGrid is closed!
The settings I have are:
jQuery("#providerItemProperties").jqGrid('navGrid', '#propertiesItemPager', {
del : true,
add : true,
edit : true,
search : false
}, {
closeAfterEdit : true
}, {
closeOnEscape: true
}, {
closeAfterAdd : true
});
It’s almost as if JQGrid is missing a closeAfterCancel option, but I would assume that is implied.
Any help would be appreciated.
Ok, figured out a hacky way to accomplish this.
I added the following:
}
to my jqGrid, now when they exit, it looks for that list and if it exists, hides it. Wish there was a better way, but it works I guess. 🙂