Expand all

4 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 05 Aug 2011 Link to this post

    Is there a property somewhere which will expand\collapse nodes, and\or set the default node state to expanded?

    (without having to do a ItemDataBound)
  2. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 10 Aug 2011 Link to this post

    Hello Steve,

    The RadTreeList has ExpandAllItems() and CollapseAllItems() methods which respectively expand / collapse all RadTreeList items. You can review the Getting Familiar with RadTreeList Server-Side API help topic for additional information.

    I hope this helps.

    All the best,
    Mira
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nicolaï
    Nicolaï avatar
    160 posts
    Member since:
    Apr 2008

    Posted 25 Jan 2012 Link to this post

    ExpandAllItems()  causes a rebind, which is very uneffecient. Double time spent on server.
    Calling that function every time you need to rebind the control? What a waste...
    Is there no way to get this expanded by default without running through the databinding code twice?
  5. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 30 Jan 2012 Link to this post

    Hello,

    Please examine the Load on Demand functionality of the RadTreeList. It allows child nodes to be added on the fly as parent nodes are expanded. This mode is useful when you need to fill sub nodes only when the parent node is expanded or the data source contains thousands of records.

    I hope this helps.

    All the best,
    Mira
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top