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
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.
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