Hi to all Members.I have installed Kendo and i am using a very basic Grid
I have bind it successfully but paging sorting doesn't seems to Work
This is my View
@model IEnumerable<UserManagementApplication.Models.tblUser>
@{
ViewBag.Title = "GetDataKendo";
}
<h2>GetDataKendo</h2>
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(model => model.FirstName);
columns.Bound(model => model.LastName);
columns.Bound(model => model.EmailAddress);
columns.Bound(model => model.IsActive);
})
.Pageable()
.Sortable()
.Filterable()
.Scrollable()
.Groupable()
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("GetUserDataKendo", "User")
)
)
)
And this is my Controller Method
public ActionResult GetUserDataKendo([DataSourceRequest]DataSourceRequest request)
{
var displayedEvents = client.GetUserList(1, 100, "", false, "");
var result = new DataSourceResult()
{
Data = displayedEvents
};
return Json(result);
}
My problem is that Paging Sorting are not working .Please see attached Image that how my image is showing
I have bind it successfully but paging sorting doesn't seems to Work
This is my View
@model IEnumerable<UserManagementApplication.Models.tblUser>
@{
ViewBag.Title = "GetDataKendo";
}
<h2>GetDataKendo</h2>
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(model => model.FirstName);
columns.Bound(model => model.LastName);
columns.Bound(model => model.EmailAddress);
columns.Bound(model => model.IsActive);
})
.Pageable()
.Sortable()
.Filterable()
.Scrollable()
.Groupable()
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("GetUserDataKendo", "User")
)
)
)
And this is my Controller Method
public ActionResult GetUserDataKendo([DataSourceRequest]DataSourceRequest request)
{
var displayedEvents = client.GetUserList(1, 100, "", false, "");
var result = new DataSourceResult()
{
Data = displayedEvents
};
return Json(result);
}
My problem is that Paging Sorting are not working .Please see attached Image that how my image is showing