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

RadTreeListView

1 Answer 160 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Neha
Top achievements
Rank 1
Neha asked on 24 Dec 2012, 07:30 AM

Hi,

I am using Silverlight Telerik RadTreeListView control, I want to set the margin of all nodes (parent & child). 
 1. want to reduce the space between ExpanderControl (in my case it is +/- sign) and Node's Text. (Horizontal Space) 
 2. want to adjust the margin of child elements. (mainly, Left margin) 
 3. want to reduce the space between All the items. (mainly, Top margin - Vertical Space)

My xaml code is as below.

Can anyone guide me??

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 24 Dec 2012, 10:50 AM
Hi,

As to your questions:
1. Unfortunately currently this could not be done. 
2, 3 You can define an implicit Style targeting GridViewCell similar to:

<Style TargetType="telerik:GridViewCell">
   <Setter Property="HorizontalContentAlignment" Value="Left"/>
   <Setter Property="Padding" Value="0"/>
   <Setter Property="Margin" Value="0"/>
</Style>

Then please set s smaller RowHeight for the TreeListView.

I hope this helps you to achieve your goal.

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TreeListView
Asked by
Neha
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or