Asp.net Core Mvc and Kendo Pagination

1 Answer 26 Views
Grid Pager
Sezer
Top achievements
Rank 1
Sezer asked on 27 May 2022, 08:18 AM
For example, you took 20 data and showed grid.
pressing the next button will pull the next 20 from the api again and it will be displayed

1 Answer, 1 is accepted

Sort by
0
Aleksandar
Telerik team
answered on 01 Jun 2022, 04:24 AM

Hello,

By default the paging functionality is disabled. To enable it add the Pageable configuration option. Find out more on the additional configuration options available in the dedicated article on the Grids paging functionality:

@(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.OrderViewModel>()
          .Name("grid")  
          ...         
          .Pageable()
          .DataSource(dataSource => dataSource
                .Ajax()
                .PageSize(20)
                ...
          )
    )

Regards,
Aleksandar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid Pager
Asked by
Sezer
Top achievements
Rank 1
Answers by
Aleksandar
Telerik team
Share this question
or