How to perform server side paging for kendo grid version 2017.2.621.545 using razor syntax.

1 Answer 30 Views
Grid Pager
Scott
Top achievements
Rank 1
Scott asked on 27 Sep 2021, 12:57 AM
Can anyone point me in the right direction on how to perform server side paging using razor syntax?  I can't seem to find any documentation that demonstrates how to do this using razor syntax for the example.

1 Answer, 1 is accepted

Sort by
0
Anton Mironov
Telerik team
answered on 29 Sep 2021, 09:51 AM

Hi Scott,

Thank you for contacting the team.

In order to achieve the desired behavior, I would recommend setting the ServerOperations of the DataSource to true:

            .DataSource(dataSource => dataSource
                .Ajax()
                .PageSize(20)
                .Read(read => read.Action("Orders_Read", "Grid"))
                .ServerOperation(true)
            )

This approach will provide the opportunity to work with:

Attached is a sample project that includes the approach above. Make the needed tests locally with the project attached and let me know if further assistance is needed.

Kind Regards,
Anton Mironov
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
Scott
Top achievements
Rank 1
Answers by
Anton Mironov
Telerik team
Share this question
or