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.
Unfortunately, activation email could not send to your email. Please try again.

TreeView expandall

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 10, 2007 07:23 PM

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 01:08 PM

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 03:54 PM

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.

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.

;