I'd like to use this "Drag and Drop Reorder of Rows in Grid"-code in Vaadin 21: https://demo.vaadin.com/sampler/#ui/drag-drop/grid-reorder-rows-html5
Unfortunately I don't find the com.vaadin.ui.components.grid.GridRowDragger<T>
class in Vaadin 21.
Is there any replacement / substitution?
An approach is to use a class that has its own order number. When dropping an item, find the new neighbour items, update order number at all items and re-set them as items in the grid.
This is working for me with a few hundreds of items in a grid: