can the Listview component be sortable and draggable? I would like to influence the order of the displayed Listview entries with the mouse. I would appreciate any feedback. Best regards
1 Answer, 1 is accepted
0
Konstantin Dikov
Telerik team
answered on 20 Feb 2024, 01:17 PM
Hi Oliver,
For introducing sorting for the ListView you can use the "orderBy" helper method and pass a sort expression with the field that you want to sort. Here is an example demonstrating such implementation:
As for reordering items, you can take a look at such implementation for the Grid and using the custom rendering of the ListView items, add similar logic that will use the browser's drag & drop: