in jqgrid, how can i have the editform disappear after submit

Posted by leora on Stack Overflow See other posts from Stack Overflow or by leora
Published on 2011-03-25T16:12:17Z Indexed on 2012/06/03 4:41 UTC
Read the original article Hit count: 209

Filed under:
|

right now, when i click submit it sends a message to the server and updates the databased and refreshes the screen but it keeps the edit form popup on the screen. Is there anyway to have it disappear once the submit is complete. its kind of annoying because its a little unclear that you are done because the form just sits there (even through the grid has refreshed)

i have closeAfterEdit and closeAfterAdd set to true but it doesn't seem to do anything.

 jQuery("#grid").navGrid("#pager",
        { },
        { height: 380, width: 500, reloadAfterSubmit: true, closeAfterEdit: true, url: siteRoot + controller + "/Update" },
        { height: 380, width: 500, reloadAfterSubmit: true, closeAfterAdd: true, url: siteRoot + controller + "/Add" },
        { reloadAfterSubmit: true, url: siteRoot + controller + "/Delete" },
        { multipleSearch: true }

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jqgrid