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

Change indent of treeview

2 Answers 117 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 21 Jul 2008, 12:21 PM

I'm using the trial version of the AJAX controls within a MOSS 2007 environment and need to customize the tree.

I am looking to remove the images on the left hand side and decrease the indent of the items. I changed the images by disabling by setting

EnableEmbeddedSkins="False"

and adding the .rtUL etc to our default css but I've had a request to bring the items more in-line
Root
--Node
-----Node

to
Root
-Node
--Node

Any sugestions?

Thanks,

Simon

2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 21 Jul 2008, 12:36 PM
Hi Simon,

The following CSS rule defines the ident:

.RadTreeView .rtUL .rtUL
{
    padding-left:20px;
}

You can try overriding it and applying less padding.

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Simon
Top achievements
Rank 1
answered on 21 Jul 2008, 12:55 PM
Many thanks. I was in the right place in the css but found that I had to mark it as '! important' to get it to work as expected.
Tags
TreeView
Asked by
Simon
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Simon
Top achievements
Rank 1
Share this question
or