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

Reduce spaces between the nodes is Tree View

1 Answer 166 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Umesh Patel
Top achievements
Rank 1
Umesh Patel asked on 03 Nov 2009, 12:11 PM
Hi,

if some one could throw some light or a sample of how to reduce the spaces between the nodes in the treeview.
in our application, we use RadTreeView; however, everyone feels that too much space is wasted on the left side of the tree as well as between the Nodes. 

I want to bring the Child nodes as close as possible without much spaces.

-Cheers

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 03 Nov 2009, 01:20 PM
Hello Umesh,

In this case you will have to edit the Style of RadTreeViewItem and remove any unnecessary margins. Also, you will have to set the MinHeight to 0. Additionally, editing the ExpanderStyle of RadTreeView will help you shrink any unnecessary spaces horizontally. I have attached a sample project demonstrating this approach. Give it a try and let me know how it works for you.

Greetings,
Kiril Stanoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
Umesh Patel
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or