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

Paging Override

1 Answer 168 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Adam Macaulay
Top achievements
Rank 1
Adam Macaulay asked on 19 Oct 2011, 08:32 PM
Good day,

I have been researching but don't see a way for me to override the Paging Event in the grid. For example, let's say I have 10,000 items coming from a remote source and I want to pass only the first 10 items to the grid. Then when the individual chooses to page to the next 10 theyclick next and the datasource, requests the next 10 from the remote source. Is there a way to accomplish in the grid or should I create my own paging template and apply it below the grid and when a user chooses another page via the paging template, I rebind the datasource to the next 10?

Thank you for your assistance

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 20 Oct 2011, 08:02 AM
Hello Adam,

You can use virtual scrolling + server paging + custom page size, as shown in this demo:

http://demos.kendoui.com/grid/virtualization-remote-data.html

In this way the service will take care of the paging and the Grid will receive only what it needs to show. Note that the JSON in the response also provides the total count.

Kind regards,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Adam Macaulay
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or