Page 1 of 1

[ANGULAR] How to get the value of filter

Posted: Fri Mar 31, 2023 9:58 am
by boyitech

Greetings!
I want to implement remote filtering of fields, how should I get the value of filter?

Image


Re: [ANGULAR] How to get the value of filter

Posted: Fri Mar 31, 2023 11:12 am
by tasnim

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


Re: [ANGULAR] How to get the value of filter

Posted: Mon Apr 03, 2023 8:29 am
by boyitech

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?


Re: [ANGULAR] How to get the value of filter

Posted: Mon Apr 03, 2023 8:53 am
by tasnim

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'));