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

RadTreeView - ForeColor and Font Type-

1 Answer 167 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Nate
Top achievements
Rank 1
Nate asked on 14 Jul 2011, 10:19 PM
For the RadTreeView, I see that we are able to interate through each node and then apply a ForeColor to each node
with the following:

e.Node.ForeColor = System.Drawing.

 

Color.DarkSeaGreen;

 


But, how can we pass a hex color as I do not see how this is possible. - example : e.Node.ForeColor = '#fff'

Next, how is it possible to change a Node's text Font Type to say Ariel or any other font types.

Thank you in advance
 

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 19 Jul 2011, 04:21 PM
Hi Nate,

You may try to do this with css like here:
.rtIn
{
    background-color:#ffdea0 !important;
   font-family:@BatangChe    !important;
    }

Hope this will help you.

Best wishes,
Plamen Zdravkov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
TreeView
Asked by
Nate
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or