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

Custom Ajax Bound grid: switch to client side paging on the fly

1 Answer 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 12 Sep 2013, 08:20 AM
I have a custom bound ajax grid with server operation (for paging, sorting, filtering etc). On the server side it would sometimes be more efficient to fetch all the data rather than just one page. If I return more than a page worth of data the grid just shows it all (as you would expect!), so what I want to do is switch to client side paging if more than a page worth of data is returned... is this possible?

I've tried setting the option on the grid during the DataSource.RequestEnd event, but this doesn't seem to have any real effect (I've tried also calling grid.Refresh, grid.SetDataSource).

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 16 Sep 2013, 06:13 AM
Hello Alex,

You cannot switch server operation off once the Grid is configured. You can however save the *extra* data on some kind of cache on server and on next page request retrieve the data directly from the *cache* if available.

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