Hi,
I have a kendo mvc grid on Razor View, which is collecting data by AJAX request to Controller.
I Would like to save page visited by user and when that user comes back grid automatically would load last visited page.
View code:
@(Html.Kendo().Grid<OrderListItemModel>()
.Name("orders")
.Columns(columns =>
{
....
.DataSource(dataSource => dataSource
.Ajax()
.Model(model => model.Id(order => order.Id))
.PageSize(10)
.Read(read => read.Action(Mvc.Crud.AjaxFilter,...
any my AjaxFilterMethod:
public virtual ActionResult AjaxFilter([DataSourceRequest]DataSourceRequest request, FilterModel filter)
{
var model = GetListItems(filter);
var result = model.ToDataSourceResult(request);
return Json(result);
}
any suggestions how i can achieve this?
Best Regards
I have a kendo mvc grid on Razor View, which is collecting data by AJAX request to Controller.
I Would like to save page visited by user and when that user comes back grid automatically would load last visited page.
View code:
@(Html.Kendo().Grid<OrderListItemModel>()
.Name("orders")
.Columns(columns =>
{
....
.DataSource(dataSource => dataSource
.Ajax()
.Model(model => model.Id(order => order.Id))
.PageSize(10)
.Read(read => read.Action(Mvc.Crud.AjaxFilter,...
any my AjaxFilterMethod:
public virtual ActionResult AjaxFilter([DataSourceRequest]DataSourceRequest request, FilterModel filter)
{
var model = GetListItems(filter);
var result = model.ToDataSourceResult(request);
return Json(result);
}
any suggestions how i can achieve this?
Best Regards