Home - Forums-.NET - FlyTreeView (ASP.NET) - ASP.NET AJAX Bug

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

ASP.NET AJAX Bug
Link Posted: 13-Nov-2006 23:31
Hi I'm not sure if the FlyTreeView is certified to work with the ASP.NET AJAX controls (previously ATLAS), but I am getting the following error. I drop a FlyTreeView control into an AJAX update panel and all my asynchronous postbacks work as normal. However, when I set the tree to autopostback on node select, then I get an error when trying to post away from my page. I.e. the tree still works fine and everything, but the post away via linkbutton gives an error. Here is some source to illustrate the problem. The code uses the file system tree code from the samples project. Expand your tree and click on a node. Then click the link button and you should get an error. ASPX: [code] <%@ Register Assembly=\"NineRays.WebControls.FlyTreeView\" Namespace=\"NineRays.WebControls\" TagPrefix=\"NineRays\" %> <%@ Register Assembly=\"Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\" Namespace=\"Microsoft.Web.UI\" TagPrefix=\"asp\" %> Untitled Page
LinkButton
[/code] Codebehind: [code] using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using NineRays.WebControls; namespace x { public partial class Demo : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { FileSystemNodes.AddNodes(FlyTreeView1.Nodes, string.Empty); } } protected void FlyTreeView1_PopulateNodes(object sender, NineRays.WebControls.FlyTreeNodeEventArgs e) { FileSystemNodes.AddNodes(e.Node.ChildNodes, e.Node.Path); } protected void FlyTreeView1_NodeSelected(object sender, FlyTreeNodeEventArgs e) { Label1.Text = e.Node.Text; } } } [/code]
Link Posted: 13-Nov-2006 23:59
We're working with AJAX (former ATLAS) integration. The ASP.NET AJAX framework sets many limitations of the server control implementation.

Currently there are several known issues that prevent FlyTreeView from being used within UpdatePanel AJAX control.