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

reduce treeview indent

2 Answers 112 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Michael Finch
Top achievements
Rank 1
Michael Finch asked on 27 Aug 2008, 09:47 AM
I am attempting to reduce the indent of nodes in my treeview control. So far :

.RadTreeView_Xerox .rtLines .rtFirst .rtUL
{
padding-left:2px;
margin-left:2px;
}

.RadTreeView_Xerox .rtLines .rtLast .rtUL
{
padding-left:2px;
margin-left:2px;
}

appears to reduce the indent on the first and last nodes. I am however unsure how to reduce the indent on all the nodes in between. How would I do this? Should I be applying these styles to a different class. (Note: my skin is based on the 'Default' TreeView Skin)

Kind Regards

2 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 27 Aug 2008, 12:03 PM
Hello Michael,

I suggest you reduce the indent of RadTreeView nodes with the following css style:

<style type="text/css">  
    .RadTreeView_Default .rtLines .rtLI .rtUL {  
        padding-left:2px;  
        margin-left:2px;  
    }  
</style> 

Best wishes,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Michael Finch
Top achievements
Rank 1
answered on 27 Aug 2008, 02:08 PM
Thanks for your help Yana. Your solution did the trick
Tags
TreeView
Asked by
Michael Finch
Top achievements
Rank 1
Answers by
Yana
Telerik team
Michael Finch
Top achievements
Rank 1
Share this question
or