This question is locked. New answers and comments are not allowed.
If SortDescriptions is not the correct term or my strategy is wrong here just tell me the right technique, I'm new at this.
I have a RadDataboundListBox bound to an ObservableCollection in my view model. I want to give the user the ability to sort the list items by different properties provided by the collection member object. I've done a fair amount of Web searching to find a good sample that shows me how to do this and I have come up empty-handed.
Is the use of SortDescriptions the right way to get this done? Or should I create relay commands for each sort type and bind them to buttons on the host page, and then have the view model sort the actual collection directly subsequently?
If SortDescriptions is the way to go, please link me to a good sample I can follow.
If I should sort the ObservableCollection directly from the view model, will doing this implicitly raise a property changed event to notify the RadDataboundListBox, or should I raise it explicitly myself?
Thanks,
Robert
I have a RadDataboundListBox bound to an ObservableCollection in my view model. I want to give the user the ability to sort the list items by different properties provided by the collection member object. I've done a fair amount of Web searching to find a good sample that shows me how to do this and I have come up empty-handed.
Is the use of SortDescriptions the right way to get this done? Or should I create relay commands for each sort type and bind them to buttons on the host page, and then have the view model sort the actual collection directly subsequently?
If SortDescriptions is the way to go, please link me to a good sample I can follow.
If I should sort the ObservableCollection directly from the view model, will doing this implicitly raise a property changed event to notify the RadDataboundListBox, or should I raise it explicitly myself?
Thanks,
Robert