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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Sorting all nodes in treeViewAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

40742 Feb 11,2006 08:33 AM UTC Feb 17,2006 11:12 AM UTC WinForms 2
loading
Tags: Tools
Jubin
Asked On February 11, 2006 08:33 AM UTC

Hi, In Syncfusion treeViewAdv''s Sorting sample ,I was able to sort only the root nodes.Is there any way to sort all the nodes in the treeViewAdv i.e, the child nodes too.It works well in .Net treeView.Could you please provide me a workaround for this.Help will be appreciated. Jubin

Deepa TS [Syncfusion]
Replied On February 13, 2006 03:49 AM UTC

Hi Jubin, You could sort all the nodes in a treeViewAdv by using the following code snippet. private void button2_Click(object sender, System.EventArgs e) { if(this.treeViewAdv1.Parent.HasChildren) { this.treeViewAdv1.Nodes.Sort(); } foreach(TreeNodeAdv tna in this.treeViewAdv1.Root.Nodes) { if(tna.HasChildren) { tna.Nodes.Sort(); } } } Please take a look at the attached sample and let me know if this helps you. Regards, Deepa.T.S.

Sorting0.zip

Administrator [Syncfusion]
Replied On February 17, 2006 11:12 AM UTC

Wow it worked now. Thanks...

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

;