I assembled a small sample that illustrates how you can implement the functionality. The state for the Grid is persisted in the beforeunload event
handler. This way any operations performed by the users before leaving the page will be persisted.
In order to restore the state you can use the document.ready event
. Make sure that you check if there is anything persisted beforehand to avoid script errors.
The sample below illustrates the approach. It is using the Kendo UI jQuery Grid, however, the relevant code for persisting the state will be the same when using the MVC wrapper.