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

CSS of text on DropDownTree

1 Answer 54 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 01 Oct 2014, 02:26 PM
Hi All,

As this control shares the design of the RadTreeView I have found that if I change the color of the text on that via CSS I also end up changing the CSS of all the text on the Drop down Trees.

I am using .RadTreeView_Black to access the normal TreeView.  What CSS should I also use to access the drop down TreeView text,  I have tried things like .rddtPopup_Black .RadTreeView .RadTreeView_Black span with no luck.,

Regards

Jon

1 Answer, 1 is accepted

Sort by
0
Magdalena
Telerik team
answered on 06 Oct 2014, 12:59 PM
Hello Jon,

If you would like to change the color of the radDropDownTreeView, please apply the following CSS
html .rddtPopup_Black .RadTreeView {
    color: red;
}

The TreeView in the RadDropDownTree is an RadTreeView control. This is the reason why the selector RadTreeView affects also to the dropDownTree control. If you would like to stylize only the RadTreeView, you can set the property "CssClass" and use it in a selector as the following

aspx:
<telerik:RadTreeView runat="server" CssClass="CustomClass">

CSS:
.RadTreeView.CustomClass {
    color: red;
}


Regards,
Magdalena
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DropDownTree
Asked by
Jon
Top achievements
Rank 1
Answers by
Magdalena
Telerik team
Share this question
or