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

Large tree take very long to load

2 Answers 75 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
niv kfir
Top achievements
Rank 1
niv kfir asked on 10 Aug 2010, 10:05 AM
Hi,
I'm trying to load a treeView with about 2400 nodes.
I'm using treeView.LoadXML(myString) or treeView.LoadXMLString(myString), but in both cases it take more than 3 min.

My PC is quite strong with:
Pentium Dual-Core 2.0Ghz
4GMb RAM
64bit Operating System

Expanding nodes in this tree is also a bit slow for the user.

Is there any way to improve those performance, like Rendering On Demand the child nodes or so?

Thanks,
Niv.

2 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 11 Aug 2010, 12:01 PM
Hello niv,

Please check this online example - it demonstrates different Load-On-Demand modes of RadTreeView. Also this blog post explains them in details.

Greetings,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Chris
Top achievements
Rank 1
answered on 11 Aug 2010, 02:52 PM
Hello,

Load on demand is great, but what if a single node has thousands of children?  If this is the case (as it is for me) then loading on demand all children of that node doesn't do any good for that particular node.  I've been trying to load only a set amount at a time (with the last node being a 'Show more' node), but haven't been able to add nodes to one that already has children from a previous post-back.

So, is there a good way to handle loading children of a node contiaining thousands of children?

Thanks,
Chris

Edit -
The easiest solution should be to group the child nodes into smaller subgroups in the repository itself so that there are more specific groups of nodes to load, rather than simply trying to load them all.  This takes no extra code, just some better organization.  I guess I answered my own question.
Tags
TreeView
Asked by
niv kfir
Top achievements
Rank 1
Answers by
Yana
Telerik team
Chris
Top achievements
Rank 1
Share this question
or