Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
XamDataTree Node Sorting
posted

What is the best way to enable sorting for a XamDataTree?  Basically I want my nodes to be displayed in alphabetical order. 

Currently I have an ObservableCollection that is being traversed to find child nodes, this works but the nodes are not sorted.  I changed it to a CollectionView thinking that that would allow me to apply sorting, but the XamDataTree does not appear to look inside the CollectionView property looking for children.

Whats the best way of accomplishing this?

Parents
No Data
Reply
  • 21382
    posted

    The tree will not sort your data at this time, so your collection would need to be in sorted order when applied to the XamDataTree.

Children
No Data