Skip to content Skip to sidebar Skip to footer

Reload Page On Add Or Edit Of Jqgrid Submit

I have a jqgrid on my page which i use for adding data. I use the dialog method to add but when the user submits, i want to refresh the entire page, not just the grid. Does anyone

Solution 1:

I was using afterRefresh instead of afterSubmit, this now reload the page

afterSubmit: function () {
                        location.reload(true);
                    }

Solution 2:

Try using location.reload() in your callback

Optionally you can use location.reload(true) to make sure that the page is loaded afresh from the server rather than the browser cache

Post a Comment for "Reload Page On Add Or Edit Of Jqgrid Submit"