Home - Forums-.NET - FlyTreeView (ASP.NET) - FlyTreeView Speed > 30000 records

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

FlyTreeView Speed > 30000 records
Link Posted: 17-Jan-2008 09:55
We’re looking at your Treeview control and wondering about the speed of it.   We have a genealogy we need to load into a treeview and the number of records exceeds 30,000.   This would be used for a direct sales/network marketing type of company where everyone has a different genealogy tree.

How fast would your control load 30,000 records?   At most, there would be about 40 levels deep of sub-nodes.
Link Posted: 17-Jan-2008 10:10
Good question.

FlyTreeView speed depends on a number of nodes simultaneously loaded at client side.
It means an amount of HTML, that browser is required to handle.

So general approach for large-scale treeviews is to use load-on-demand feature in order to minimize amount of HTML rendered/handled by browser at a given moment.

So if you have 40 levels and 30000 of nodes, then it looks like a good example of where the load-on-demand should be used.

All you need is just to set for every node PopulateNodesOnDemand property to true and handle FlyTreeView.PopulateNodes event to add nodes when they are requested by browser.

If you want to see a good example of such approach and evaluate its performance, then you'd better look at our filesystem demo like this: http://www.9rays.net/asp.net_2/treeview/Demo_Vista.aspx