RadListView - Sorting

1 Answer 50 Views
ListView (obsolete)
lukerobi
Top achievements
Rank 1
Iron
lukerobi asked on 06 Aug 2024, 06:56 PM
So I am running into an issue where the content of the listview may be updated or changed, but the sorting does not reflect the changes.  Is there a way trigger the listview to resort the list without clearing the sorting descriptors and adding them back?

1 Answer, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 07 Aug 2024, 07:52 AM

Hi Luke,

Indeed, the sorting is not updated when the ListView data is modified. I am afraid the approach is the one you've already tried - updating the SortDescriptors collection of the ListView.

The SortDescriptors collection supports binding, so you can modify the sort descriptors directly from the ViewModel, take a look at the example showing the approach here: ListView: Bindable Sort Descriptors.

Let me know if I can help with anything else.

Regards,
Yana
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ListView (obsolete)
Asked by
lukerobi
Top achievements
Rank 1
Iron
Answers by
Yana
Telerik team
Share this question
or