RadTreeView Performance

2 posts, 0 answers
  1. John
    John  avatar
    3 posts
    Member since:
    May 2008

    Posted 24 Oct 2008 Link to this post

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

    }

  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 27 Oct 2008 Link to this post

    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.
Back to Top