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

Rad Tree nodes not getting aligned.

3 Answers 62 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Noel
Top achievements
Rank 1
Noel asked on 08 Nov 2012, 04:53 AM
Hi,

I've a radtree with nodes in it in which some of the nodes have an image along with the text. Now, when they're rendered, the nodes get aligned from the start of the content. I want the text part of the nodes to be aligned. Please find the attached image for more clarification.

I tried adding a css class and a content css class. But I think the properties I mentioned are overridden.

Any help would be appreciated.

Thanks.
Noel

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Kate
Telerik team
answered on 12 Nov 2012, 11:51 AM
Hello Noel,

You can use the following css class selector to position the image before the text and keep its current position:
<style>
        div.RadTreeView .rtImg {
            margin-left: -16px;
        }
    </style>
 
Kind regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Noel
Top achievements
Rank 1
answered on 13 Nov 2012, 06:25 AM
Thanks Kate,

It worked. Just to confirm. It'll affect only the images used in the nodes of the treenodes, right?

Regards,
Noel
0
Kate
Telerik team
answered on 13 Nov 2012, 02:16 PM
Hi Noel,

Yes, the selectors that I suggested in the previous post refer to the images applied to the TreeViewNode only.

Greetings,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeView
Asked by
Noel
Top achievements
Rank 1
Answers by
Kate
Telerik team
Noel
Top achievements
Rank 1
Share this question
or