Vaadin 8 Grid filtering with BackEndDataProvider

I was created Service class which extends “BackEndDataProvider”,
Get “ConfigurableFilterDataProvider” from service.
After configurableFilterDataProvider.setFilter(…) filter not applied,
“.fetch” method from BackEndDataProvider not firing.

Today’s not elegant solution is create
“.setFilter”
method in service class and apply filter by calling
“.setFilter” and after
grid.setDataProvider(…)
to reload data in grid from service.

See source code here:
https://github.com/zesetup/vaadin8grid

i rewrited with “withConfigurableFilter” and now question is - why needed to call “grid.getDataCommunicator().reset()” to reload data in grid from Data Provider.


https://github.com/zesetup/vaadin8grid

Perhaps you should check this example:
https://github.com/vaadin/framework8-demo/blob/master/spring-demo/spring-demo-ui/src/main/java/com/vaadin/framework8/samples/crud/ProductDataProviderImpl.java

He extends from AbstractBackEndDataProvider and he doesn’t use grid.getDataCommunicator().reset() (only to reset the grid).

I didn’t overwrite a backendprovider (I use CallbackDataProvider which call my service) so i don’t know exactly why you need getDataCommunicator().reset().

Thank you!