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

[Solved] Radgrid clientside pagination

1 Answer 182 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ram+telerik S
Top achievements
Rank 1
ram+telerik S asked on 14 Dec 2009, 02:25 AM
I have a radgrid and  I am populating the grid using data returned from a web service call (after massaging the data returned by WS)  A lot of records are returned from this web service calls. I would like to paginate it ,but paginating in the server side makes another call to WS, which I do not want.

On top of it, during post backs the gridItemCount is  set to the page size, though there are more records than the page size.

I would like to do some sort of pagination in the client side, where clicking on next/prev would just hide/show relevant pages. And when the page does a postback, I would like to "post" the entire grid instead of a portion of it. Is it possible ?

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 14 Dec 2009, 09:35 AM
Hello,

I am afraid that all paging/sorting/filtering operations must be handled on your service. RadGrid on client side will bind to all the data supplied to it's dataSource property regardless the page size defined.

If you need to keep all the data on client you can consume the service from client-side and cache the data on client. Thus you will be able to supply RadGrid with only page size items without hitting the service every time paging occurs(have in mind that you will have to handle OnCommand event and cancel all commands).

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
ram+telerik S
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or