Paging for GridView

7 posts, 0 answers
  1. RAVINDRA
    RAVINDRA avatar
    47 posts
    Member since:
    Dec 2010

    Posted 20 Jun 2011 Link to this post

    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
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 20 Jun 2011 Link to this post

    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
  3. DevCraft banner
  4. RAVINDRA
    RAVINDRA avatar
    47 posts
    Member since:
    Dec 2010

    Posted 20 Jun 2011 Link to this post

    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
  5. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 20 Jun 2011 Link to this post

    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
  6. RAVINDRA
    RAVINDRA avatar
    47 posts
    Member since:
    Dec 2010

    Posted 20 Jun 2011 Link to this post

    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
  7. RAVINDRA
    RAVINDRA avatar
    47 posts
    Member since:
    Dec 2010

    Posted 20 Jun 2011 Link to this post

    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
  8. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 20 Jun 2011 Link to this post

    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
Back to Top
DevCraft banner