Telerik
Skip Navigation LinksHome / Community / Forums / ASP.NET AJAX > TreeView > Hide the Collapse/Expand button

Answered Hide the Collapse/Expand button

Feed from this thread
  • VANDENBERGHE avatar

    Posted on Jun 4, 2008 (permalink)

    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.

    Reply

  • Telerik Admin admin's avatar

    Posted on Jun 4, 2008 (permalink)

    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

    Reply

  • VANDENBERGHE avatar

    Posted on Jun 4, 2008 (permalink)

    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.

    Reply

  • Answer Telerik Admin admin's avatar

    Posted on Jun 4, 2008 (permalink)

    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

    Reply

  • VANDENBERGHE avatar

    Posted on Jun 4, 2008 (permalink)

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

    Regards,
    Sebastien.

    Reply

  • Datamex Intermediate Datamex's avatar

    Posted on Jan 22, 2010 (permalink)

    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?

    Reply

  • Princy MVP Princy's avatar

    Posted on Jan 22, 2010 (permalink)

    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.

    Reply

  • Datamex Intermediate Datamex's avatar

    Posted on Jan 22, 2010 (permalink)

    Hi Princy,

    I already did that, but there is still about one cm of whitespace before the treeview.
    See my image attachment.
    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community / Forums / ASP.NET AJAX > TreeView > Hide the Collapse/Expand button
Related resourses for "Hide the Collapse/Expand button"

ASP.NET TreeView Features  |   Documentation   |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]

Powered by Sitefinity ASP.NET CMS

Contact Us | Site Feedback | Terms of Use | Privacy Policy
Copyright © 2002-2010 Telerik. All rights reserved.