This is a migrated thread and some comments may be shown as answers.

Very slow RadTreeView

3 Answers 282 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Rafał Legiędź
Top achievements
Rank 1
Rafał Legiędź asked on 14 Jan 2010, 08:22 AM
Hi there!
I've a problem with RadTreeView control. I'd like to create a (rather) big tree (6 levels, with 300 hundred leaves). Every node need to have a checkbox; checkboxes need to be tri-state. The thing is that I need to read the selection (of nodes) from the database, display whole tree and then the selection of leaves (and according parent nodes). Only selected intermediate nodes will have their subtree expanded. So the problem is that while I render the whole tree, the page is starting to run veeery slow (I've checked in FireBug - whole page has 211 kB!!!). I thought that LoadOnDemand would solve my problems, but it's not that easy because sometimes I'll need to have whole tree expanded (every leaf node selected). Any suggestions?

3 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 15 Jan 2010, 05:39 PM
It sounds to me like you are attempting to display a ton of data, which is why the TreeView is running slow. You mention that you attempted to use Load-on-demand - did it actually improve the performance in the cases where you are able to not have all items expanded? I believe if you actually try to fit your design to perhaps not have all of these nodes displayed at once (that's a lot of data for a single control/page to display at once) you should see improvements.
0
ilija
Top achievements
Rank 1
answered on 05 Oct 2011, 09:34 AM
Hi,

I also had the same problem as Rafal. The RadTreeVIew placed on my page has around 500 nodes and it uses tri-state check boxes. The nodes are placed on 15 levels in depth. The tree view is binded at server side and it is very fast if tri-state check boxes are turned off. But when I turn on the tri-state check boxes it become very slow. I think that the combination of many levels in depth and tri-state check boxes is causing the rad tree view to become slow, since I tested the tri-state check boxes on a server side binded tree view with around 500 nodes that are placed on 5 nodes in depth. In this case the tree view is also very fast.  Any suggestion on that?
0
Princy
Top achievements
Rank 2
answered on 11 Oct 2011, 07:27 AM
Hello,

The WebService LoadOndemand delivers the best performance. It does not execute the page lifecycle, does not send the ViewState to the server and outputs tidy JSON which saves precious traffic.
For further information check the following articles. Hope this helps.
RadTreeView for ASP.NET Ajax Load On Demand Modes - why so many?
Performance Tip: Use Web Service Load On Demand with RadTreeView

Thanks,
Princy.
Tags
TreeView
Asked by
Rafał Legiędź
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
ilija
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or