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

Custom Orientation

1 Answer 21 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Manny
Top achievements
Rank 1
Manny asked on 08 Nov 2013, 07:24 PM
Hello I need help with orientation.  What  I am trying to do is have all root/ancestors have vertical alignment and all descendants without children to have horizontal alignment.  Does that make sense? At most there will only be a depth of three.

I tried to use the following example but could not get it to work: http://www.telerik.com/community/forums/aspnet-ajax/treeview/horizontal-orientation-for-certain-nodes.aspx

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Magdalena
Telerik team
answered on 11 Nov 2013, 01:55 PM
Hi Manny,

You can add an property float: left to the items if you would like to make them horizontal. Please, find the exemplar solution in the attachment. There is a script that applies the CSS class to all sub-items without children to make them horizontal.

Regards,
Magdalena
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
TreeView
Asked by
Manny
Top achievements
Rank 1
Answers by
Magdalena
Telerik team
Share this question
or