Vaadin 8 Grid: reordering items (move up/down button)

Hi there,

how can I offer reordering of items (like a priority list e.g. with “move up” & “move down” buttons, see screenshot) in Vaadin 8 Grid? in Vaadin 7 it could easily be done with the BeanItemContainer like this:

// move down int id bic.indexOfId(bean); bic.removeItem(bean); bic.addItemAt(++id, bean); I don’t see a possibility with the DataProvider at the moment?

Thanks in advance!
32905.png

I guess you need to manipulate the backing list you are using in Grid and then call getDataProvider().refreshAll()