Home - Forums-.NET - FlyTreeView (ASP.NET) - Is XMLHttpRequest used before PostBack for NodePopulate

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

Is XMLHttpRequest used before PostBack for NodePopulate
Link Posted: 17-Oct-2007 03:51
We have problems with standard Microsoft TreeView in MSAjax UpdatePanel. So we decided to try your TreeView :)
First we tried to integrate FlyTreeView in our project without any Ajax. 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 using of XMLHttpRequest before the postback. So it was quite unexpected for us. Did FireBug deceive us? If not then is it correct behavior? Did we not notice some settings in your control for using only postbacks without any XMLHttpRequest?
We are afraid that such using of XMLHttpRequest by your control additionally to using by UpdatePanel may cause problems... Or do we missed something in interaction between your control and MSAjax?
Link Posted: 17-Oct-2007 04:05
This is because populateondemand is set to true, isn't it?
So node tries to populate its children, shows Loading... message and starts  XMLHttpRequest. Then it looks at postbackonexpand and postbacks itself.

I know we need to check postbackonexpand is set to false before populating node. Otherwise, just postback page and set node state to expanded. This is one of our current TODOs.

Typically it does not bring problems (except extra http request) since FlyTreeView has functionality to solve async requests related problems.

Anyway, as I mentioned before, this is what we have to fix within our nearest bug-fix release (I think it will be published during this week).
Link Posted: 17-Oct-2007 04:14
This is because populateondemand is set to true, isn't it?

Sure it is!
We just did not expect XMLHttpRequest. But all is clear in your description
In our case additional XMLHttpRequest  may cause only loading time increasing in case of too many nodes..
So we are waiting for your fix ;) and hope to buy your control soon  
Thx for quick answer.