Hi,
Due to our project requirement, we are implementing RadTreeListView CTP control, and replacing with RadTreeView. In RadTreeView, we are able to add binding in sorted order through CollectionViewSource. As we implemented this new CTP control, we are not getting any result. Please suggest..
Due to our project requirement, we are implementing RadTreeListView CTP control, and replacing with RadTreeView. In RadTreeView, we are able to add binding in sorted order through CollectionViewSource. As we implemented this new CTP control, we are not getting any result. Please suggest..
CollectionViewSource svc = new CollectionViewSource();
svc.SortDescriptions.Add(
new System.ComponentModel.SortDescription("Name", System.ComponentModel.ListSortDirection.Ascending));
svc.Source = <here we have observablecollection>
tvDocuments.DataContext = svc;
But end result is nothing. The problem is when we get new item in collection, it is adding in bottom of tree and we want to make it sort.
I will apprecicate your response.
Thanks,