Filter input debouncing
A configurable debounce delays filter application while the user is still typing. Enter applies the filter immediately. This keeps typing responsive on large data sets and avoids sending a burst of requests to a server.
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 grid of 50,000 rows with debounce set to 300 ms. An event log counts each onFilterChanged firing.
Expected behavior
Typing quickly logs a single onFilterChanged event after the pause. With applyOn='button', an Apply button appears and nothing filters until it is pressed. With debounce 0, every keystroke filters.
Planned API surface
filterDebounceMscolumnDefs[].filterParams.debounceMsfilterParams.applyOn ('input' | 'enter' | 'blur' | 'button')onFilterChangedAcceptance criteria
- With debounceMs=N, onFilterChanged fires once, N ms after the last keystroke. (pending)
- Pressing Enter cancels the pending debounce and applies immediately. (pending)
- A column-level debounceMs overrides the grid-level filterDebounceMs. (pending)
- applyOn='button' renders Apply and Reset buttons, and the model only changes when they are activated. (pending)
- Unmounting the grid while a debounce is pending does not throw an error and does not fire the event. (pending)