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

Sorting subnodes in TreeViewAdv

Thread ID:





103207 Apr 11,2012 06:14 PM UTC Apr 24,2012 12:49 AM UTC WPF 1
Tags: Tools
Administrator [Syncfusion]
Asked On April 11, 2012 06:14 PM UTC

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 24, 2012 12:49 AM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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