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

Paging for GridView

6 Answers 104 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
RAVINDRA
Top achievements
Rank 1
RAVINDRA asked on 20 Jun 2011, 11:44 AM
Hi

I want to implement paging for GridView using DataPager. For me the data will be coming from the database. And i should not be bringing all the data at a time to the client end. Please let me know how do i display the number of pages and how do i implement the paging?

Thanks
Ravindra

6 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 20 Jun 2011, 11:49 AM
Hello,

 Have you checked our demos? 

Regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
RAVINDRA
Top achievements
Rank 1
answered on 20 Jun 2011, 12:00 PM
Thanks for the response.

I have checked the demos, but, its not shown any where how the data is retrieved dynamically. It would be great if you direct me to the demo that explains this scenario.

Ravindra
0
Rossen Hristov
Telerik team
answered on 20 Jun 2011, 12:04 PM
Hello RAVINDRA,

You can do it in absolutely the same way in which you would do it with the stock toolkit DataPager.

RadDataPager and the stock toolkit DataPager have the same API so they are totally interchangeable.

Best wishes,
Ross
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
RAVINDRA
Top achievements
Rank 1
answered on 20 Jun 2011, 12:38 PM
Thanks for the response Ross.

I am able to paginate the data now using Paged Collection View object. But, my page also has add new item functionality. This adds a new item to the underlying list of PagedColelctionView. But its being not reflected in the UI.

Please let me know what would be the issue?

Regards
Ravindra
0
RAVINDRA
Top achievements
Rank 1
answered on 20 Jun 2011, 01:42 PM
Hi

One thing i noticed in the given demos is all the data is loaded from the server into the PagedCollectionView Object first. Then, it is being Paged by giving it as source for GridView and DataPager. But I have very huge amount of data(lakhs of data). It takes lot of time for the service to get all teh data and some times results with time out errors as well. So please let me know which demo is explaining this by displaying the number of pages?

I am using entity framework and RIA services to get the data.

Thanks
Ravindra
0
Rossen Hristov
Telerik team
answered on 20 Jun 2011, 01:49 PM
Hi RAVINDRA,

You can use RadGridView, RadDataPager and RadDomainDataSource like in this online demo. Paging will be done directly on the server. Filtering and sorting also.

To explore the new RadDomainDataSource control in greater depth, please check its online examples and take a look at the following blog posts:

I hope this helps.

Let us know in case you have specific questions regarding our controls.

Best wishes,
Ross
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
DataPager
Asked by
RAVINDRA
Top achievements
Rank 1
Answers by
Vlad
Telerik team
RAVINDRA
Top achievements
Rank 1
Rossen Hristov
Telerik team
Share this question
or