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

rtFirst affects all the nodes in my tree

4 Answers 79 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Tonyz289
Top achievements
Rank 1
Tonyz289 asked on 25 Jan 2012, 08:15 PM
I set the following in the CSS for my TreeView but it is affecting ALL of the nodes not just first node. See attached

.RadTreeView_tree_2 .rtFirst
{
    font-size: 12pt;
    font-weight: bolder;
    font-style: italic;
 }

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Jan 2012, 05:45 AM
Hello,

I have tried the same and it worked as expected. I am using version 2011, 3, 1305, 35. Here is the screenshot.
CSS:
.rtFirst
 {
   font-size: 12pt !important;
   font-weight: bolder !important;
   font-style: italic !important;
 }

Thanks,
Princy.
0
Tonyz289
Top achievements
Rank 1
answered on 27 Jan 2012, 03:23 PM
I see. However I want just the root node bold, and italic, like this.

0
Accepted
Bozhidar
Telerik team
answered on 27 Jan 2012, 04:12 PM
Hi Tony,

Try the following selector:
.rtFirst>div
{
    font-size: 12pt !important;
    font-weight: bolder !important;
    font-style: italic !important;
}

 
Kind regards,
Bozhidar
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
0
Tonyz289
Top achievements
Rank 1
answered on 27 Jan 2012, 04:47 PM
That did it. Thanks
Tags
TreeView
Asked by
Tonyz289
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Tonyz289
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or