I'm writing how best to expand the root node of the TreeView control by default, on the page load - either with C# or with the properties of the RadTreeView;
rootNode.Expanded = true - this code did not work as expected;
If you need to expand a specific node of the RadTreeView control here is a very good help article that explains how this could be achieved on the server.:Tutorial: Finding Nodes. However, if you need to expand nodes on the client-side you can refer here for more detailed explanation how it could be done (first article is for single node and the second for the collection of nodes - in the middle of the topic you can find an example how to loop through the node collection):
Further, if you choose the client-side approach I would recommend that you use the
OnClientLoad event and assign an event handled as described here.
Kind regards,
Kate
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