This is a migrated thread and some comments may be shown as answers.

Page navigation with more entries not working properly

1 Answer 13 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
CIQIntegration asked on 03 Oct 2017, 08:25 AM

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;
      .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);
      .Pageable(p =>
      .DataSource(dataSource =>
                    .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))

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 05 Oct 2017, 06:13 AM

Thank you for the provided information and the code.

The provided Grid configuration looks good and I can assume that there is an issue with the server response.

Could you please observe the request made from the Grid in the network tab to check if they are for the correct page? If they are correct I can suggest debugging the action method in the Controller and if it is sending the correct data to the Grid.

If the issue still occurs, please provide a fully runnable example, as the issue can be caused by a custom factor which we are overlooking at this moment.

Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question