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

2 posts, 1 answers
  1. Wajih
    Wajih avatar
    7 posts
    Member since:
    Sep 2012

    Posted 22 Feb 2011 Link to this post


    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.


  2. Answer
    Kate avatar
    1898 posts

    Posted 22 Feb 2011 Link to this post

    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">

    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!
Back to Top