Reputation: 8008
Is there an event associated with the cancel button of various jQGrid dialog boxes like ADD, Edit and Delete ? For my edit dialog box, I need to do some processing when the user clicks the cancel button.
please help
thanks
Upvotes: 0
Views: 1324
Reputation: 221997
Probably it could be enough to use onClose
callback for form editing (see the documentation here and here).
If you would fund out that the callback are called not allays (I don't tested it in the current version of jqGrid) then you can choose another way. If you really need to process all closing of all dialogs you can consider to overwrite or to subclass $.jgrid.closeModal
or $.jgrid.hideModal
functions. See the demo from the answer (compare the code with original one here).
Upvotes: 1