Paging through TreeView Nodes

7 posts, 1 answers
  1. Edward
    Edward avatar
    13 posts
    Member since:
    Aug 2010

    Posted 08 Jun 2010 Link to this post

    I understand I can have a TreeView or a TreeViewList that will load data Virtual/OnDemand.  And I know I can have my TreeView nodes sorted. 

     

    I have seen in your DataGrid that you have a paging control attached to the DataGrid.  Can I use a paging control to go through the nodes in the TreeView or TreeListView?

    Ed Reyes

  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 09 Jun 2010 Link to this post

    Hello Edward,

    The CTP version of the TreeListView does not support paging. We were considering adding paging in the coming version of the TreeListView but this is the first time it has been requested.

    Can you be more specific as to how you expect it to work:
     - Should only root items be paged?
    - If the whole hierarchy is paged, what should happen when items are expanded / collapsed by the user?
    - Should hierarchy be able to start from an Nth level on a consecutive page or the hierarchy should be kept on each page?

    Kind regards,
    Miroslav
    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. Edward
    Edward avatar
    13 posts
    Member since:
    Aug 2010

    Posted 09 Jun 2010 Link to this post

    Greetings,

    For my users, i was looking for the root items to be paged.  But maybe something could be added to a template to determine if the paging control is visible, but for my need I would want the paging control to be always there regardless if I am on a root node or not.

    When I first bring up a tree, I only want to load the first page.  when the users go to additional pages I would then load the items for that page.  This is just lazy loading, which you already have.  But the amount of data in this tree is going to be to big to scroll through.  Therefore, I want to be use a page system to help navigate through the nodes.  I won't have lots of children nodes for each item, but you are right, If I did I can see the need for what you are inferring,  For my use I only want to page the root nodes and the expansion of children would not affect the paging, it's all part of the paged root nodes.  Regardless of being on a root node or child node, I would prefer that the single paging system for my root nodes to be always visible.

    Ed
  5. Answer
    Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 14 Jun 2010 Link to this post

    Hi Edward,

    This kind of paging functionality (paging on the root items) will be possible with RadTreeListView and RadDataPager controls once the tree list is official. Please find attached a sample application that uses both controls as well as Blend's sample data to illustrates this feature in action. Hope you will find it useful.

    Regards,
    Stefan Dobrev
    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. Mike Gold
    Mike Gold avatar
    16 posts
    Member since:
    Oct 2009

    Posted 26 Aug 2010 Link to this post

    This is great.  We really need paging as well in the tree list views child nodes.  The problem with the current treelistview and treeview (as well as the microsoft standard controls) is that if you have a lot of nodes in a branch (let's say 3000),   the treelistview starts to become slow and unusable.  Paging in a node would solve this problem.

  7. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 30 Aug 2010 Link to this post

    Hello Mike,

    I have created a feature request in our public tracking system for your node based paging suggestion. You can find it here and vote for it. As more and more people find this useful and vote for it, we will implement this feature.

    Kind regards,
    Stefan Dobrev
    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
  8. Mike Gold
    Mike Gold avatar
    16 posts
    Member since:
    Oct 2009

    Posted 30 Aug 2010 Link to this post

    I actually wrote an article on C# Corner as a possible workaround for the RadTreeView Virtualization Issue   It shows you how to do paging inside your RadGridView.  Still, it would be nice to have virtualization on individual nodes so the tree is usable for nodes exceeding 1000. <g>

    -Mike
Back to Top
DevCraft banner