Is there an easy way to pass the current page and current row via a hyperlink to another page? For example, I have a grid with an edit link in the last column. I'd love to be able to send the user back to the exact page as they left when they went off to edit the record. See code example below.
Thanks,
Brent
Html.EJ().Grid<Litify.Web.Data.Pub>("Grid")
.Datasource((IEnumerable<Litify.Web.Data.Pub>)Model)
.AllowSorting()
.AllowPaging()
.PageSettings(p => { p.PageSize(20); p.EnableQueryString(true); })
.AllowGrouping()
.AllowFiltering()
.FilterSettings(filter => { filter.FilterType(FilterType.Excel); })
.AllowTextWrap()
.AllowResizing()
///.EnablePersistence(true)
.Columns(col =>
{
col.Field(p => p.PubId).HeaderText("Id").IsPrimaryKey(true).Width(10).Add();
col.Field(p => p.Category).HeaderText("Category").Width(15).Add();
col.Field(p => p.FirstAuthor).HeaderText("First").Width(15).Add();
col.Field(p => p.Year).HeaderText("Year").Width(10).Add();
col.Field(p => p.Title).HeaderText("Title").Width(80).Add();
col.HeaderText("Actions").Width(10).Template("<a rel='nofollow' href='Pubs/DetailsEdit/{{:PubId}}?page={{:page}}'>Edit</a>").Add();
})
.Render();
}