This is a migrated thread and some comments may be shown as answers.

Sorting

1 Answer 38 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jerome
Top achievements
Rank 1
Jerome asked on 06 Apr 2012, 05:35 PM
I have a hierarchical RadTreeView, which I am trying to get sorted properly. The first level items need to be sorted by a binding expression, and the second level items need to be sorted by a different binding expression.

Can you refer me to some samples on how to do this?

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 10 Apr 2012, 12:07 PM
Hi Jerome,

The best approach for sorting a TreeView would be to sort the collection of items you are binding to.
There are several approaches depending on the use case.
You could check if CollectionViewSource would fit into your scenario. It is a wrapper around the actual data providing API for sorting and filtering.

Greetings,
Hristo
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TreeView
Asked by
Jerome
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or