see example codesandbox:
Slow when using custom headers (by 14 seconds)
steps:
- (Click) toggle to display filters
- (Type) Toyota
- wait filter update (also slow)
- (click) getFilter
- WAIT 10 seconds or more for the console.log to display...
This example uses custom headers but adding agColumnHeader to frameworkComponents
const frameworkComponents = {
agColumnHeader: AgColumnHeader
};
Also on button click - toggles the filters to be true
colDef.floatingFilter = !colDef.floatingFilter;
colDef.filter = "agTextColumnFilter";
Faster when NOT using custom headers
steps:
- (Click) Filter icon
- (Type) Toyota
- wait filter update (also slow)
- (click) getFilter
- WAIT 10 seconds or more for the console.log to display...
This example simply defaults the floatingFilter to true on load but does not have customisation on column headers.
const defaultColDef: TColumn = {
filter: "agTextColumnFilter",
floatingFilter: true
};