public void RebindNode(string id, bool showContextMenu) { RadTreeNode node = RadTreeView1.FindNodeByValue(id); Panel pnl = (Panel)node.FindControl("pnlNode"); node.Selected = true; Label plbl = (Label)pnl.FindControl("lblContextMenu"); if (showContextMenu) { plbl.CssClass = id + "_tvContext"; } else { plbl.CssClass = id + "_tvContext hideElement"; } RadTreeView1.DataBind(); node.ExpandParentNodes(); }