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.
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);
}