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

All I want to do is change font name and size of all nodes

3 Answers 226 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Joe Sixpack
Top achievements
Rank 1
Joe Sixpack asked on 09 Apr 2010, 08:54 PM
I'm really struggling with how to just change the font to Arial and the pt size for all nodes.   I'm using the Default skin.  What is the simplest way to do this?

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Apr 2010, 09:04 AM
Hi Joe,

Add the following CSS on page in order to set the font-size and family for all nodes in TreeView.

CSS:
 
<style type="text/css"
        .RadTreeView_Default 
        { 
            font-familyarial !important; 
            font-size13px !important; 
        } 
</style> 

Thanks,
Princy.
0
Kevin
Top achievements
Rank 1
answered on 16 Apr 2012, 03:48 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


0
Kevin
Top achievements
Rank 2
answered on 17 Apr 2012, 01:34 PM
Hello Kevin,

The example mentioned works for me. Have you inspected your html to see if the rule is somehow being overwritten by some other style rule?
Tags
TreeView
Asked by
Joe Sixpack
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Kevin
Top achievements
Rank 1
Kevin
Top achievements
Rank 2
Share this question
or