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

RadTreeView Performance

1 Answer 84 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 24 Oct 2008, 06:22 PM
Telerik,
I have a rad tree view control on an asp.net page that i am populating using a collection of value objects in the code below.  The problem is the performance of the treeview is very poor once it is built completely.  When all is said and done there are probably 21 parent nodes, for each parent there are maybe 30 children and for each child there are probably 8 children.  Is there any way to improve the performance of this because right now it is absurdly slow.  Any help or suggestions are appreciated because unless we figure out a fix for this we will not be able to use the component.  Thanks.

John P.

List

<TOCSpecialtyVO> specialties = tocService.GetSectionsAndSubSections(0);

 

 

 

foreach (TOCSpecialtyVO specialty in specialties)

 

{

 

RadTreeNode SpecialtyNode = new RadTreeNode(specialty.shortName);

 

 

foreach (TOCSectionVO section in specialty.sections)

 

{

 

RadTreeNode SectionNode = new RadTreeNode(section.sectionName);

 

 

foreach (TOCSubSectionVO subSection in section.subsections)

 

{

 

RadTreeNode SubSectionNode = new RadTreeNode(subSection.SubSectionName);

 

SectionNode.Nodes.Add(SubSectionNode);

}

SpecialtyNode.Nodes.Add(SectionNode);

}

rtvHierarchy.Nodes.Add(SpecialtyNode);

}

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 27 Oct 2008, 07:33 AM
Hello John ,

For details on how to optimize our controls please refer to Top Performance page.

Kind regards,
Paul
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
John
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or