VANDENBERGHE
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
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 |
| { |
| display: none; |
| } |
Best wishes,
Simon
the Telerik team
Reply
VANDENBERGHE
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
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
Reply
VANDENBERGHE
Posted on Jun 4, 2008
(permalink)
Thanks a lot, I haven't seen this function in the doocumentation, sorry.
Regards,
Sebastien.
Reply
Datamex
Intermediate
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
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
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.
Reply