Hello,
We are using a the RadTreeView control inside a master page that populates data in a content page via a redirect on node click. The problem is that we are binding a different dataset to the tree on page load and then expanding the tree to the node that was clicked. This is causing the nodes in the tree that we have expanded to show the collapsed icon even though they are expanded.
When we then click the icon to expand the node it initially does nothing, click again and it attempts to expand the node and click again and ti successfully collaps the node.
Here is the nodes onclick event to give you some idea:
Any help to solve this would be much appreciated,
Thanks,
Ken
We are using a the RadTreeView control inside a master page that populates data in a content page via a redirect on node click. The problem is that we are binding a different dataset to the tree on page load and then expanding the tree to the node that was clicked. This is causing the nodes in the tree that we have expanded to show the collapsed icon even though they are expanded.
When we then click the icon to expand the node it initially does nothing, click again and it attempts to expand the node and click again and ti successfully collaps the node.
Here is the nodes onclick event to give you some idea:
protected void uiRadTreeView_NodeClick(Object sender, Telerik.Web.UI.RadTreeNodeEventArgs e) |
{ |
// Set the session variable search to be null so no highlighting occurs in PopulateContentPane |
Session["Search"] = null; |
string siteId = Request.QueryString["SiteId"]; |
if (!String.IsNullOrEmpty(siteId)) |
{ |
Users user = (Users)Session["User"]; |
if (user == null) |
{ |
user = new Users(Page.User.Identity.Name); |
} |
// Log action |
AuditLog.AddEntry(user, TLT.Extranet.DataAccess.Site.Type.General, 3, Int32.Parse(siteId), Int32.Parse(e.Node.Value), Session.SessionID); |
Response.Redirect("Default.aspx?SiteId=" + siteId + "&NodeId=" + e.Node.Value); |
} |
} |
Any help to solve this would be much appreciated,
Thanks,
Ken