Home - Forums-.NET - FlyTreeView (ASP.NET) - Many PostBacks in Ajax UpdatePanel on single node click

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

Many PostBacks in Ajax UpdatePanel on single node click
Link Posted: 18-Oct-2007 04:08
We have noticed that FlyTreeView works wrong in MS Ajax UpdatePanel.

We want to use your control in UpdatePanel so we need only postbacks without any internal XMLHttpRequest. All properties of FlyTreeView like PostBackOnClick was set to true.
In the Firefox we use extension FireBug. And we noticed that node click in your control cause not only using of XMLHttpRequest before the postback but also many independent postbacks which are handled by Ajax. So Ajax sends many XMLHttpRequest and only one is processed correctly. After few such attempts Ajax show error message about incorrect ViewState.

As we understood if set next attributes
PostBackOnSelect=\"True\" PostBackOnDeselect=\"False\" PostBackOnDropAccept=\"False\" PostBackOnExpand=\"True\" PostBackOnCollapse=\"True\" PostBackOnClick=\"True\"
then node click initiate next postbacks (which are handled by Ajax) one after another: PostBackOnClick, then PostBackOnDeselect, then PostBackOnSelect, then PostBackOnExpand (real consequence isn't important). Without Ajax seems only one postback is generated. It looks like you don't take into account that your postback may not cause real reloading of page...
Link Posted: 18-Oct-2007 06:05
This is a general issue (like in your previous topic).
We have a bug-fixed version, which locks all postbacks/callbacks during single  user action (click in your case) and then processes the latest postback and all previously locked callbacks (if no postback scheduled).

It is not tested, anyway I can upload it to downloads, so you can check it out right now.
Link Posted: 18-Oct-2007 06:09
Clear. Thx.
We may download it and check tomorrow. So you may upload
Link Posted: 18-Oct-2007 08:41
Here's download link:
http://download.9rays.net/treeview_asp.net_2/flytreeview_43_1_78.zip
Link Posted: 19-Oct-2007 00:10
We have checked with a simple sample and inside our more complex project.
Results:[list=1]
  • IE - perfect with/without MS Ajax;
  • [/*:m]
  • FF - perfect with/without MS Ajax;
  • [/*:m]
  • Opera - don't work in complex page with MS Ajax, without MS Ajax - ok;
  • [/*:m]
  • Safari - don't work with MS Ajax at all, without MS Ajax - ok;
  • [/*:m]
  • Conqueror - have not checked yet
  • [/*:m][/list:o]
    For Opera and Safari problem may be inside Ajax but not in your control. It is not clear for us.
    Link Posted: 19-Oct-2007 00:27
    Currently, we do not support Conqueror browser (and other KHTML-based).
    As for Safari, we started support with new Safari 3 (still in beta), support for older versions of webkit is still in progress.
    Opera should simply work (except context menu - Opera doesn't support right-click events). And it works with AJAX (from our tests).

    So far we need to fix UpdatePanel for Safari.
    Link Posted: 19-Oct-2007 00:49
    We used Safari 3.0.3 for Windows.

    About Opera: as i said it don't work only in our project. If don't use postbacks by your tree or don't use Ajax - all is fine. In our project after any postback (not only from your treeview) in UpdatPanel treeview became dead (don't react on any actions). The same behavior with Safari even for simple sample.
    So we will try to make more deep investigation about using of FlytreeView in our project under Opera. Maybe some our codes cause this problems.
    Link Posted: 19-Oct-2007 05:59
    [quote="sniper777"]The same behavior with Safari even for simple sample.

    Yes, we experience same problems. And already trying to debug and fix the case.

    [quote="sniper777"]So we will try to make more deep investigation about using of FlytreeView in our project under Opera. Maybe some our codes cause this problems.

    Thanks. This information will greatly help us to fix possible issues.