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

[Horizontal TreeView] IsLineEnabled?

1 Answer 18 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Max
Top achievements
Rank 1
Max asked on 29 Nov 2011, 03:12 PM
Hi everyone!
First, thanks for Telerik's Controls, they are amazing!

Little question for a Silverlight horizontal RadTreeView, made with this article and this demo.

Is it possible to get lines between items in Horizontal mode?

The only solution I see  is to add a Canvas, and to build lines programmtically :'(

Is there a simplest way?

Thanks by advance! 

(Sorry for my English's level... I hope you will understand! :) )

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 02 Dec 2011, 12:47 PM
Hi Max,

You don't have to define a Canvas and build your own lines. You can instead edit the default ControlTemplate of the RadTreeView control and modify it to better suit your needs. For example you can remove the horizontal lines and only leave the vertical line before the RadTreeViewItems. Then you can also move this line at the top of the RadTreeViewItem ControlTemlate. I attached a sample demonstrating such an approach. Please give the project a try and let me know if it represents a style close to what you had in mind.

If you need to further customize the template, you can send us a snapshot illustrating your requirements and we can assist you in implementing them.

Greetings,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TreeView
Asked by
Max
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or