[Horizontal TreeView] IsLineEnabled?

2 posts, 0 answers
  1. Max
    Max avatar
    1 posts
    Member since:
    Nov 2011

    Posted 29 Nov 2011 Link to this post

    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! :) )
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 02 Dec 2011 Link to this post

    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.

    Tina Stancheva
    the Telerik team

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

Back to Top