Paging

6 posts, 0 answers
  1. suman
    suman avatar
    19 posts
    Member since:
    Oct 2010

    Posted 09 Jun 2011 Link to this post

    Hi,


    I came to know that the Rad Pager works only for the higher level nodes (Pager doesn't know the inner hierarchy items). Is this true irrespective from the type of datasource Collection/XML ?


    also, we are planning to have a vertical paging, meaning, dates as columns, first page, 30 days (30 columns), second page, next 30 days (30 columns), and it goes on (do have a certain limit on the no. of pages). Question is, is there any easy way to maintain the node expansion state when user is moving from one page to another page?


    It would be one of our critical requirement, Please help up.


    Thanks,

    Suman

  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 14 Jun 2011 Link to this post

    Hello suman,

    RadDataPager has no knowledge of hierarchy whatsoever.

    It can only page a single collection, which in the case of RadTreeListView is its top-level collection.

    All the best,
    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. suman
    suman avatar
    19 posts
    Member since:
    Oct 2010

    Posted 22 Jun 2011 Link to this post

    Yes, I'm aware that the RadDataPager has no knowledge of hierarchy whatsoever.

    We would be binding the rows to the control page by page, mean to that, there would be buttons to display previous/next set of rows. Is there any easy/better way to maintain the scroll and node expansion state when user click on the Previous/Next buttons? 

    Thanks,
    Suman
  5. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 23 Jun 2011 Link to this post

    Hi suman,

    From the point of view of the TreeListView it is as though it is completely re-bound each time the pager changes the page. It is as though a new ItemsSource is coming to it each time the pager changes its page.

    So I am afraid that there is no easy way to maintain the scroll and node expansion state.

    All the best,
    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. suman
    suman avatar
    19 posts
    Member since:
    Oct 2010

    Posted 28 Jun 2011 Link to this post

    Please let me know your opinion on the below thought

    Since we are doing a vertical paging (display first 60columns in the 1st page and the next 60 on the second page and so on) so the no. of rows is always same irrespective from the page. Display the items all expanded every time, when user clicks on the next/previous button, focus the same row what user selected in the previous page.

    Your help is greatly appreciated.

    Thanks,

    Suman

  7. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 30 Jun 2011 Link to this post

    Hello suman,

    The only paging that RadDataPager can perform is "vertical" row paging. It is explained in great detail in my blog post. Please, read my entire post before going on.

    Paging is a very simple process. You click the next page button and the next <page_size> number of records are set as the ItemsSource of the grid. Nothing more that than. No one knows about columns, rows and so on. Everything happens through the IPagedCollectionView interface. 

    RadDataPager cannot scroll the grid left and right and move RadGridView's column like you have described. That is the job of the scroll-viewer.

    I hope this helps.

    Greetings,
    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
UI for WPF is Visual Studio 2017 Ready