To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
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.
In Vaadin 8 Grids data model is no longer container, but DataProvider instead. Here is the interface spec for the ConfigurableFilterDataProvider.
ListDataProvider implements this interface, further specs about using filtering is found here:
And here is one quite good exampe:https://stackoverflow.com/questions/42475774/how-to-add-grid-filters-in-vaadin-8If anybody else is looking the same - but it worked for me quite well.