Hide the Collapse/Expand button

9 posts, 1 answers
  1. VANDENBERGHE
    VANDENBERGHE avatar
    22 posts
    Member since:
    May 2008

    Posted 04 Jun 2008 Link to this post

    Hi everyone,

    Is it possible to hide the Collapse/Expand  button in a RadTree. Is there for example a set_expandable() javascript function ???

    Regards,
    Sebastien.
  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 04 Jun 2008 Link to this post

    Hello VANDENBERGHE,

    You can hide the Plus/Minus images by applying the following CSS style to your page:

            div.RadTreeView .rtMinus, 
            div.RadTreeView .rtPlus 
            { 
                displaynone
            } 

    Best wishes,
    Simon
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. VANDENBERGHE
    VANDENBERGHE avatar
    22 posts
    Member since:
    May 2008

    Posted 04 Jun 2008 Link to this post

    Thanks,

    But my problem is I just want to hide the collapse/expand sign for one node and not for all the nodes in the tree. Is there anyway to do that ?

    Regards,
    Sebastien.
  5. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 04 Jun 2008 Link to this post

    Hello VANDENBERGHE,

    You can use some JavaScript to implement the same. Here is a sample code:

    var treeView = $find("<%=RadTreeView1.ClientID%>");
    var node = treeView.get_nodes().getNode(0);
    var toggleElement = node.get_toggleElement();
    if (toggleElement)
    toggleElement.style.display = "none";


    Regards,
    Albert
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. VANDENBERGHE
    VANDENBERGHE avatar
    22 posts
    Member since:
    May 2008

    Posted 04 Jun 2008 Link to this post

    Thanks a lot, I haven't seen this function in the doocumentation, sorry.

    Regards,
    Sebastien.
  7. Datamex
    Datamex avatar
    161 posts
    Member since:
    Jun 2012

    Posted 22 Jan 2010 Link to this post

    Hi,

    I do want to hide all Plus/Minus images of the treeview.
    Can you tell me how to remove the whitespace before the nodes?
  8. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 Jan 2010 Link to this post

    Hello,

    I am using same CSS as Simon suggested, for hiding the plus/minus signs of treeview. And if you want to hide the lines, then you can set the 'ShowLineImages' property of RadTreeView to "false".

    Thanks,
    Princy.
  9. Datamex
    Datamex avatar
    161 posts
    Member since:
    Jun 2012

    Posted 22 Jan 2010 Link to this post

    Hi Princy,

    I already did that, but there is still about one cm of whitespace before the treeview.
    See my image attachment.
  10. Krishna
    Krishna avatar
    2 posts
    Member since:
    Sep 2014

    Posted 26 Sep 2014 in reply to Simon Link to this post

    Display :none doesn't works
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017