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

Apply css to only one treeview control if my page contains more than one treeview control

1 Answer 104 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Wajih
Top achievements
Rank 2
Wajih asked on 22 Feb 2011, 03:41 PM
Hi,

My page contains 2 treeview controls.
in second treeview control i dont want to show plus minus expand images for that i found following in forum

 

div.RadTreeView .rtPlus, div.RadTreeView .rtMinus {
display: none;

 

 

}

but when i apply this css it is appying to both the treeview controls which i dont want, i want  to apply this css to second treeview control.

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Kate
Telerik team
answered on 22 Feb 2011, 06:53 PM
Hi Wajihuddin Khan,

You can create a new css class and apply it only to the RadTreeView where you do not want the plus and minus to appear:
div.class .rtPlus,
div.class .rtMinus  {   display: none; }

You can apply it to the TreeView like this:
<telerik:RadTreeView ID="RadTreeView1" runat="server"  CssClass="class">

Greetings,
Kate
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
TreeView
Asked by
Wajih
Top achievements
Rank 2
Answers by
Kate
Telerik team
Share this question
or