0

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?

Java bee
  • 2,522
  • 1
  • 12
  • 25

0 Answers0