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

Build the Hierarchy tree by using Telerik RadTreeView

5 Answers 65 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Peter Zhao
Top achievements
Rank 1
Peter Zhao asked on 01 Mar 2011, 06:02 AM
Hi Everyone:

 Is it possible to build the Hierarchy tree(horizontal) by using RadTreeView control?
Samething like the picture below.


Thanks,
Peter

5 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 03 Mar 2011, 05:47 PM
Hi Peter Zhao,

You can modify the default ControlTemplate of the RadTreeViewItem to implement this scenario. You can find more info on how to edit ControlTemplates in Blend here. Currently the RadTreeViewItem Template Structure contains a Grid RootElement, which represents the layout root for the template. It defines two rows - in the first one is the ContentPresenter and in the second one is the ItemsPresenter for the child items. So if you change the rows to columns, you will be able to get the desired look.

I attached a sample project to get you started.

Greetings,
Tina Stancheva
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Peter Zhao
Top achievements
Rank 1
answered on 03 Mar 2011, 10:06 PM
Thanks. I will have a look.
0
Peter Zhao
Top achievements
Rank 1
answered on 04 Mar 2011, 05:27 AM
Hi Tina:

I have played with the application that you attached. it looks very nice. just one thing I need to ask you about for the tree, for the first element of each level we have the top edge, it isn't very nice. is there any way we can remove it?That will be very helpful. Please see the attached picture that highlight part.


Cheers,
Peter
0
Tina Stancheva
Telerik team
answered on 07 Mar 2011, 04:57 PM
Hello Peter Zhao,

I modified the sample accordingly. Please have a look at it and let me know if this is what you had in mind.

All the best,
Tina Stancheva
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Peter Zhao
Top achievements
Rank 1
answered on 07 Mar 2011, 09:54 PM
Thanks Tina:

 It looks great. Appreciate your help.


Regards,
Peter
Tags
TreeView
Asked by
Peter Zhao
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Peter Zhao
Top achievements
Rank 1
Share this question
or