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

Expand all

3 Answers 414 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 05 Aug 2011, 03:57 PM
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)

3 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 10 Aug 2011, 03:53 PM
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.

0
Nicolaï
Top achievements
Rank 2
answered on 25 Jan 2012, 12:46 PM
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?
0
Mira
Telerik team
answered on 30 Jan 2012, 10:26 AM
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
Tags
TreeList
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Mira
Telerik team
Nicolaï
Top achievements
Rank 2
Share this question
or