Home - Forums-.NET - FlyTreeView (ASP.NET) - Error when working with Ajax

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

Error when working with Ajax
Link Posted: 20-Jan-2008 00:21
When I'm working with postbacks the tree reacts good.

BUT - When i put it under update pannel i get an error message like this:
"Cannot find node (n770gdp8w) in the treeview hierarchy that should handle client -side event: _5V"

It's strange couse i tried it a little before and it worked great under Ajax. Now its not working.

btw - it's happens when i set the value PostBackOnClick to True. and also populate on demand is done.

How can i solve this problem?
Link Posted: 20-Jan-2008 00:50
Is there any chance to get your code? This is really important to us.

What I have working here:
FlyTreeView control inside of UpdatePanel, two postback buttons (in UdatePanel and out of it).
No errors.

Thanks in advance.
Link Posted: 20-Jan-2008 22:11
I found the reason why it failed at ajax mode.

I added Modal Popup extender to the form but it wasn't configured well so it caused the whole ajax component to fail.

Best regards
Link Posted: 28-Feb-2008 12:04
I am having a similar problem.  I have a flytreeview and an update panel on a page.  When the page loads, nodes are programatically added to the flytreeview in the OnInit event.  (NOTE: The flytreeview is NOT inside the UpdatePanel)  When the UpdatePanel posts back to the page, I get the following error:

NullReferenceException: Cannot find node (n35oak1s) in the treeview hierarchy that should handle client-side event: _5S

Another thing to note is that when the page posts back, I am rebuilding the flytreeview in the OnInit.  I have tried a number of different combinations ... not rebuilding when IsPostBack is true, moving the rebuilding function to the OnLoad, etc.  However, the error still exists.  

It bombs right after the OnInit finishes and before the OnLoad, so it seems that the control is not loading the view state data?

Any help is greatly appreciated.

Thanks,
Mark
Link Posted: 28-Feb-2008 15:27
[quote="burlmd"]I am having a similar problem.  I have a flytreeview and an update panel on a page.  When the page loads, nodes are programatically added to the flytreeview in the OnInit event.  (NOTE: The flytreeview is NOT inside the UpdatePanel)  When the UpdatePanel posts back to the page, I get the following error:

NullReferenceException: Cannot find node (n35oak1s) in the treeview hierarchy that should handle client-side event: _5S

Another thing to note is that when the page posts back, I am rebuilding the flytreeview in the OnInit.  I have tried a number of different combinations ... not rebuilding when IsPostBack is true, moving the rebuilding function to the OnLoad, etc.  However, the error still exists.  

It bombs right after the OnInit finishes and before the OnLoad, so it seems that the control is not loading the view state data?

Any help is greatly appreciated.

Thanks,
Mark




Nevermind.  I found my mistake.  I had previously disabled the ViewState for the entire page!  Now, it works a lot better ...