RadTreeView - ForeColor and Font Type-

2 posts, 0 answers
  1. Nate
    Nate avatar
    26 posts
    Member since:
    May 2011

    Posted 14 Jul 2011 Link to this post

    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.




    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
  2. Plamen
    Plamen avatar
    3031 posts

    Posted 19 Jul 2011 Link to this post

    Hi Nate,

    You may try to do this with css like here:
        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!

Back to Top