How to make a Vaadin Grid Columns sortable with data from CrudEntityDataProvider?

188 Views Asked by At

How to make a Vaadin Grid's Columns sortable with data from a CrudEntityDataProvider ?

the best example for this case is Bakery App -> Users grid https://bakery-flow.demo.vaadin.com/users

I try with a ListDataProvider

ListDataProvider trainingsArtProvider = DataProvider.ofItems(TrainingsArt.getAllTrainingsArten());

and the columns are sortable, but the filters are ignored and any edit ending with a RuntimeException

java.lang.RuntimeException: java.lang.IllegalStateException: Unknown key: 97

The goal is to have a sortable AND filterable grid in a simple way.

It is even possible to achieve this?

0

There are 0 best solutions below