Our blazing fast Grid component built with pure JavaScript


Post by boyitech »

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

Image


Post 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


Post 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?


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

Post Reply