keep status in mvcgrid.net

177 Views Asked by At

Mvcgrid.net works nicely.

I know how the grid keeps its status in the following example: http://mvcgrid.net/demo/formatting after clicking "view" button in a row: he uses back in browser.

I'm trying to do the same thing, using the same controller and another action but i lose grid status when i come back to the results page (eg: editing or deleting a row).

.WithValueExpression((p, c) => c.UrlHelper.Action("Edit", "Users", new { area = "Admin", id = p.Id }))

In the edit view, after editing a record:

 @Html.ActionLink("Back", "Index")

I would avoid solution using modal box.

Thanks in advance.

1

There are 1 best solutions below

0
On BEST ANSWER

Finally i found a solution. I have to save in session last visited url. In this way i could go to previous url (also if a post occurs)