Hi all,
I am facing a weird issue and I am not sure if this is a bug on my or your side.
My grid has 146 items and displays 10 at once, therefore I have 15 pages. When I click on the "next page" arrow it works fine (shows the next entries) until I arrive on page 6. Then the items are the same until page 10, and from 11 on my grid displays again different entries.
@using Haris.Web.Controllers.Admin
@using Haris.Web.Models.Admin
@{
ViewBag.Title = Texts.Views_UserRole_Index_Title;
}
@(Html.Kendo().Grid<UserRoleGridModel>()
.Name("userroles-grid")
.Columns(columns =>
{
columns.Bound(e => e.ClientId).Width(50).Title(Texts.Views_UserRole_Index_Grid_ClientId);
columns.Bound(e => e.Role).Width(350).Title(Texts.Views_UserRole_Index_Grid_RoleList).Sortable(false).Filterable(false);
})
.Sortable()
.Pageable(p =>
p.ButtonCount(5)
.PageSizes(GlobalSettings.PageSizeArray)
.Refresh(true)
)
.Filterable()
.Deferred()
.DataSource(dataSource =>
dataSource.Ajax()
.Events(ev => ev.RequestEnd("kendoGridRequestEnd").Error("kendoGridError"))
.Read(read => read.Action<UserRoleController>(c => c.List(null)).Data("kendoGridAntiForgery"))
.Destroy(builder => builder.Action("Delete", "UserRole").Data("kendoGridAntiForgery"))
.Model(factory => factory.Id(model => model.UserId))
)
.AutoBind(false))