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

Cant change font family

1 Answer 66 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 16 Apr 2012, 03:49 PM
Hi,

I need to change the font family for every node on my treeview. I used the example mention previously but it doesn't work.
It only changes the font family for the root node and its first two children. All the other nodes remain unchanged.

This is the code I used

<style type="text/css">
    .RadTreeView_Default
    {
        font-family: arial !important;
        font-size: 13px !important;
        color: red !important;
    }     
</style>


Attached you will find a screen shot



1 Answer, 1 is accepted

Sort by
0
Ivan Zhekov
Telerik team
answered on 17 Apr 2012, 10:32 AM
Hi, Kevin.

You could use a snippet like the following:

html .RadTreeView_Default,
html .RadTreeView_Default a.rtIn,
html .RadTreeView_Default .rtEdit .rtIn input {
    /* code goes here */
}

The html in the beginning is to make the snippet more specific, so you will not need to use !important directive.

Regards,
Ivan Zhekov
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
Kevin
Top achievements
Rank 1
Answers by
Ivan Zhekov
Telerik team
Share this question
or