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

RadTreeNodes dissapear with the Visible property

1 Answer 46 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Greivin
Top achievements
Rank 1
Greivin asked on 14 Nov 2011, 11:05 PM
Hi, I hope you can help me.
I'm using a radTreeview to present the information, my problem is when the property Visible of the radtreenode became false on the server-side (because I need it in that way), in the client-side the radTreeView only have the nodes that remained visible on the server-side.

How can I correct this??

Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 Nov 2011, 01:46 PM
Hello,

If visibility of  a control is set as false on server side,then it wont render. So one suggestion is you can set visibility using CSS class and then access on client side. Here is the sample code.
C#:
protected void Page_Load(object sender, EventArgs e)
  {
    RadTreeView1.Nodes[1].CssClass = "hide";
  }

CSS:
<style type="text/css">
 .hide
  {
    visibility:hidden !important;
  }
</style>

Thanks,
Princy.
Tags
TreeView
Asked by
Greivin
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or