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

Node indentation

3 Answers 122 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 23 May 2010, 04:58 PM
How do you vary the amount by which child nodes are indented ?

3 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 26 May 2010, 07:53 AM
Hi Stephen,

You can use the ItemsIndent property, for example like so:

<telerik:RadTreeView ItemsIndent="100">
    <telerik:RadTreeViewItem Header="Item 1" />
    <telerik:RadTreeViewItem Header="Item 2" >
        <telerik:RadTreeViewItem Header="Item 1" />
        <telerik:RadTreeViewItem Header="Item 2" />
        <telerik:RadTreeViewItem Header="Item 3" >
            <telerik:RadTreeViewItem Header="Item 1" />
            <telerik:RadTreeViewItem Header="Item 2" />
            <telerik:RadTreeViewItem Header="Item 3" />
            <telerik:RadTreeViewItem Header="Item 4" />
        </telerik:RadTreeViewItem>
        <telerik:RadTreeViewItem Header="Item 4" />
    </telerik:RadTreeViewItem>
    <telerik:RadTreeViewItem Header="Item 3" >
        <telerik:RadTreeViewItem Header="Item 1" />
        <telerik:RadTreeViewItem Header="Item 2" />
        <telerik:RadTreeViewItem Header="Item 3" />
        <telerik:RadTreeViewItem Header="Item 4" />
    </telerik:RadTreeViewItem>
    <telerik:RadTreeViewItem Header="Item 4" />
</telerik:RadTreeView>


Best wishes,
Miroslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ramin
Top achievements
Rank 1
answered on 01 Oct 2010, 09:09 PM
I have a problem with ItemsIndent property.
Please look at the attached images and you can see there is a problem of aligning the lines when I set ItemsIndent="5"

 

0
Tina Stancheva
Telerik team
answered on 06 Oct 2010, 12:33 PM
Hello Ramin,

Thank you for reporting this issue. I logged it in our PITS where you can track its progress. I also updated your Telerik points.

Please accept our apology for the caused inconvenience.

Greetings,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Stephen
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Ramin
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or