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

Paging through TreeView Nodes

6 Answers 115 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 08 Jun 2010, 09:11 PM

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

6 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 09 Jun 2010, 11:28 AM
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.
0
Edward
Top achievements
Rank 1
answered on 09 Jun 2010, 04:38 PM
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
0
Accepted
Stefan Dobrev
Telerik team
answered on 14 Jun 2010, 03:25 PM
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.
0
Mike Gold
Top achievements
Rank 1
answered on 26 Aug 2010, 04:23 PM
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.

0
Stefan Dobrev
Telerik team
answered on 30 Aug 2010, 10:55 AM
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
0
Mike Gold
Top achievements
Rank 1
answered on 30 Aug 2010, 06:02 PM
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
Tags
TreeListView
Asked by
Edward
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Edward
Top achievements
Rank 1
Stefan Dobrev
Telerik team
Mike Gold
Top achievements
Rank 1
Share this question
or