flow-components icon indicating copy to clipboard operation
flow-components copied to clipboard

Grid: Add support for setting a filtered data provider

Open peholmst opened this issue 2 months ago • 2 comments

Fixes https://github.com/vaadin/flow-components/issues/3842.

This is my outcome from the AI workshop. Claude wrote all the code according to my specifications. This PR:

  • Introduces a new set of methods, setItemsWithFilter that accept a fetch callback, a fetch/count callback pair, and a backend data provider, respectively, with a non-void filter type.
  • Introduces a new GridLazyFilterDataView type that makes it possible to set a filter.

This maintains backwards compatibility with the existing methods and types without introducing new generic type parameters.

peholmst avatar Dec 12 '25 08:12 peholmst

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Dec 12 '25 08:12 CLAassistant