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
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 >>