aGreebarnita38
New Member
I use \[code\]RadTreeView\[/code\] in my master page :but i face the following problem :I lose my selections when i click on the nodes of the tree view .and every time i click on the node it makes \[code\](Response.Redirect("..."))\[/code\] which make the master entering the \[code\](!Page.IsPostback)\[/code\]every time and bind the tree view again so i lose my selections .How to fix this problem .My .aspx :\[code\] <telerik:RadTreeView ID="rtv_cm" runat="server" OnNodeExpand="rtv_cm_NodeExpand" OnNodeClick="rtv_cm_NodeClick" Skin="WebBlue"> </telerik:RadTreeView>\[/code\]My .cs :\[code\] protected void Page_Load(object sender, EventArgs e) { if (Session["emp_num"] != null && !string.IsNullOrEmpty(Session["emp_num"].ToString())) { if (!Page.IsPostBack) { LoadRootNodes(rtv_cm, TreeNodeExpandMode.ServerSide); } } else { Response.Redirect("Frm_login.aspx"); } }\[/code\]\[code\]protected void rtv_cm_NodeClick(object sender, RadTreeNodeEventArgs e) { dt_childs = (DataTable)Session["dt_childs"]; IEnumerable<DataRow> result = from myRow in dt_childs.AsEnumerable() where myRow.Field<string>("task_id").TrimEnd() == e.Node.Value.TrimEnd() select myRow; if (result != null) { if (!string.IsNullOrEmpty(result.ElementAtOrDefault(0).Field<string>("page_name"))) { Response.Redirect(result.ElementAtOrDefault(0).Field<string>("page_name").TrimEnd(), false); } } }\[/code\]