We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TreeView expandall

Thread ID:

Created:

Updated:

Platform:

Replies:

70387 Dec 10,2007 03:20 PM UTC Dec 26,2007 08:54 PM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: Tools
Kathy Gray
Asked On December 10, 2007 03:20 PM UTC

Is there a way to expand all the nodes in the treeview without going through and expanding them one at a time? Similar to the expandall function in the asp treeview?


Nandakumar R [Syncfusion]
Replied On December 11, 2007 12:23 AM UTC

Hi Kathy,

Can you try this function and let me know if this helps?

[C#]
this.treeViewAdv1.ExpandAll();

Regards,
Nanda


Kathy Gray
Replied On December 20, 2007 06:08 PM UTC

I get this error:

'expandall' is not a member of 'Syncfusion.Web.UI.WebControls.Tools.TreeView'.


>Hi Kathy,

Can you try this function and let me know if this helps?

[C#]
this.treeViewAdv1.ExpandAll();

Regards,
Nanda




Administrator [Syncfusion]
Replied On December 26, 2007 08:54 PM UTC

Hi Kathy ,

You can expand all the parent nodes by using the Expanded property of the TreeViewNode. Please refer to the following code snippet.

[C#]

foreach (TreeViewNode m_node in this.TreeView1.Items)
{
m_node.Expanded = true;
}

Please let me know if this helps.

Regards,
Nagaraj




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;