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

Page number showing up between paging buttons

1 Answer 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
StuartLittle
Top achievements
Rank 1
StuartLittle asked on 17 Feb 2021, 01:38 PM

I have been using MVC grids for quite some time now. Only recently noticed that the page number shows up between the paging buttons. It increases and decreases as paging buttons are clicked. Please see the attached image. Is this a bug or something wrong in my code. We are using the latest 2021.1.119

 

@(Html.Kendo().Grid<SampleProject.ViewModels.EmployeeViewModel>()
                        .Name("EmployeeGrid")
                        .Columns(col =>
                        {
                            col.Bound(o => o.NetworkID).Width(150);
                            col.Bound(o => o.Name).Width(400);
                            col.Bound(o => o.Role).Width(200);
                            col.Bound(o => o.Category);
                            col.Command(command => { command.Destroy(); }).Width(150);
                        })
                        .Pageable(a => a.PageSizes(new int[] { 10, 25, 50, 100 }))
                        .Sortable()
                        .Scrollable()
                        .Filterable(filterable => filterable
                        .Extra(false)
                        .Operators(operators => operators
                            .ForString(str => str.Clear()
                                .Contains("Contains")
                                .IsEqualTo("Is equal to")

                            )))
                        .HtmlAttributes(new { style = "height:700px;" })
                        .DataSource(dataSource => dataSource
                        .Ajax()
                        .PageSize(100)
                        .Model(model =>
                        {
                            model.Id(p => p.ID);
                        })
                .Read(read => read.Action("Employee_Read", "Admin"))
                .Destroy(delete => delete.Action("Employee_Delete", "Admin"))
        )
    )

 

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 19 Feb 2021, 09:21 AM

Hello, 

Thank you for the shared Grid configuration. It seems in order to me, and after including it in the attached example I was not able to observe the issue. Could you please modify the example as necessary? I will then test it and see what is causing the problem.

Looking forward to your reply.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
StuartLittle
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or