Jukka31
(Jukka Lehtinen)
1
Hi,
I’m trying to do Grid filters for columns with Vaadin 8 like: http://demo.vaadin.com/book-examples-vaadin7/book/#component.grid.filtering
But there isn’t methods anymore like:
Grid.getContainerDataSource() or TextField.addTextChangeListener in Vaadin 8 (but those are in Vaadin 7).
Any help to find a new example for Vaadin8 (Google really didn’t gave any) ? or advice how to get the filtering in grid working.
Tatu2
(Tatu Lund)
2
In Vaadin 8 Grids data model is no longer container, but DataProvider instead. Here is the interface spec for the ConfigurableFilterDataProvider.
https://vaadin.com/api/8.0.5/com/vaadin/data/provider/ConfigurableFilterDataProvider.html
ListDataProvider implements this interface, further specs about using filtering is found here:
https://vaadin.com/api/8.0.5/com/vaadin/data/provider/ListDataProvider.html
Jukka31
(Jukka Lehtinen)
3
And here is one quite good exampe:
https://stackoverflow.com/questions/42475774/how-to-add-grid-filters-in-vaadin-8
If anybody else is looking the same - but it worked for me quite well.