Vue Listview sortable & draggable?

1 Answer 31 Views
ListView
Oliver
Top achievements
Rank 1
Oliver asked on 16 Feb 2024, 08:41 AM

Hello forum,

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

Sort by
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:

Hope this helps.

 

Regards,
Konstantin Dikov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources

Tags
ListView
Asked by
Oliver
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or