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

WPF TREEVIEW With Multiple levels and Paging

1 Answer 258 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Rock
Top achievements
Rank 1
Rock asked on 18 Sep 2015, 05:07 AM
Hi,

 My requirement is

1. WPF Treeview control​ it should accept the user defined treeviewitem template and it should supports multiple levels.
2. Treeview inside a treeview with multiple levels.
3.​ Treeview with Lazy loading and Custom defined Paging support. ex: page contains 200 items.
4. In the Paging, When we scroll only 200 items should be display​(Not like a Grid control)..Only scrolling paging will be handled.
5.Treeviewitem with Image.​

Kindly reply me whether mentioned requirements should ​support your WPF Treeview control? if supports please send me sample and will showcase to client. Based on that we are planning to purchase telerik controls.

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 22 Sep 2015, 10:54 AM
Hi,

I am not sure that I understand some of your requirements. This is why I would ask you to elaborate a little more on them. Let me get straight to your list:
  1. WPF Treeview control​ it should accept the user defined treeviewitem template and it should supports multiple levels.
    I am not sure that I understand what you mean by user defined templates. Can you please describe this with more details? Note that, you can use the ItemTemplate of RadTreeView to define a template for the items. If you want to have a different template for the different level of the tree you can use the ItemTemplateSelector. So, when the user define a template you can use those properties to set it. Also, you can set the template for a particular RadTreeViewItem using directly its HeaderTemplate property. 
  2. Treeview inside a treeview with multiple levels.
    RadTreeView doesn't support nesting. You can have many levels with different appearance (nested RadTreeViewItems), but you cannot have a RadTreeView control inside another RadTreeView control. However, if you tell me what you want to achieve I can think of a suitable approach that can be suitable for your case. Moreover, a drawing of the expected result will be helpful.
  3. Treeview with Lazy loading and Custom defined Paging support. ex: page contains 200 items.
    About the lazy loading, you can take a look at the load on demand feature of RadTreeView. As for the paging, the treeview control doesn't support such functionality which means that you will need to implement it with custom code. Basically, you can load only 200 items in the treeview and when you change the page replace them with another 200. Or instead of paging you can consider using UI Virtualization. You can see a demonstration of the tree's UI virtualization and load on demand in the Performance demos.
  4. In the Paging, When we scroll only 200 items should be display​(Not like a Grid control)..Only scrolling paging will be handled.
    I am not sure that I understand what you mean by "scrolling paging" - do you expect to change the current page when you reach the end of it? However, I think that I covered also this question in the previous point. In general, in order to achieve paging you can write custom logic for this. Also, you can consider using RadTreeListView which derives from RadGridView and support some of its features like paging and sorting for example.
  5. Treeviewitem with Image.​
    You can take a look at the Item Images help article.

I hope this information helps.

Regards,
Martin
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
TreeView
Asked by
Rock
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or