Home - Forums-.NET - FlyTreeView (ASP.NET) - problems during tree refresh

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

problems during tree refresh
Link Posted: 01-Mar-2009 17:27
Hi,

When we click certain nodes in our FlyTreeView control, sometimes we need to modify the tree such that we add or delete nodes.

We are able to do this as needed. However, there is a big problem:

After the new tree has been received (but the old tree is still visible), while it is being rendered, if the user clicks on nodes, it completely breaks our app because it appears to cause a couple of different problems. (We have many nodes....thousands to the rendering takes some time.)

Everything works if the user waits for the tree to be refreshed in the browser if needed.

So, to work around this we would like a way to know that the tree is rendered or refreshed so that we can ignore clicks on the tree that happen during the the refresh.

How can we do this?

Can we disable the tree control before we send the request (and then enable later)? If so, how?
Can we be notified when rendering starts and ends? If so, how?
Are there other ideas?


Thank you
Link Posted: 03-Mar-2009 05:36
Do you use load-on-demand?
I think you can use client node events like expanded/populated to perform your custom tasks when required.

Also, see http://www.9rays.net/asp.net_2/treeview/miscpages/doc/ClientEvents.aspx