[ANGULAR] How to get the value of filter
Posted: Fri Mar 31, 2023 9:58 am
Greetings!
I want to implement remote filtering of fields, how should I get the value of filter?
Greetings!
I want to implement remote filtering of fields, how should I get the value of filter?
Hi,
You could get all the filters like this
grid.store.filters.allValues
And you could filter using this https://bryntum.com/products/grid/docs/api/Core/data/Store#function-filter
Hope this will help
Thanks for your reply, and I want to request data from server when the filters changed. Is there a way to monitor the value of the filters changed?
Hi,
You could listen to https://bryntum.com/products/grid/docs/api/Core/data/mixin/StoreFilter#event-filter
It will fire when any filters are applied to the store
grid.store.on('filter', () => console.log('filter'));