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.

Sorting subnodes in TreeViewAdv

Thread ID:





103207 Apr 11,2012 02:14 PM Apr 23,2012 08:49 PM WPF 1
Tags: Tools
Administrator [Syncfusion]
Asked On April 11, 2012 02:14 PM

I have a multi-column TreeViewAdv, and I want to support alphabetically sorting by the name of the item.

My code populates the TreeViewAdv control using an itemtemplate.

I set Sorting on the TreeViewAdv to Ascending, but what else do I need to do?


Karthikeyan L [Syncfusion]
Replied On April 23, 2012 08:49 PM

Hi CJ,

By setting the ‘SortingField’ property and have call ‘SortTreeViewItem’ method we can sort the TreeView based on fields. We have attached the sample for your reference.

[Sample link]: http://www.syncfusion.com/downloads/Support/DirectTrac/92536/CS1955209427.zip

Please let us know if you have any queries.



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.