High-cardinality and async set filter values
Set filters can virtualize long value lists and load distinct values asynchronously, for example from a server, with loading and error states. This keeps the menu fast with 100k distinct values or with remote data.
Planned. This page shows the specification from issue #187. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A set filter backed by a simulated async provider that returns 80,000 values after 800 ms.
Expected behavior
Opening the filter shows a loading indicator, then a virtualized list that scrolls smoothly. Simulated errors show a Retry button. The existing selection survives a refresh.
Planned API surface
filterParams.valuesProvider (async)filterParams.virtualizefilterParams.maxRenderedValuesfilterParams.refreshValuesOnOpenrefreshSetFilterValues(colId)Acceptance criteria
- With virtualize enabled, the number of DOM nodes in the list stays bounded regardless of how many values there are. (pending)
- A loading state is visible while the provider promise is pending. (pending)
- A provider rejection shows an error message and a Retry button. The filter model is unchanged. (pending)
- Selected values missing from a refreshed value list are kept in the model and shown in a 'Not in current list' section. (pending)
- If the filter popup is closed before the provider resolves, the result is ignored without errors. (pending)