PDA

View Full Version : Grid Panel Store filtering



senchashiva
31 Oct 2011, 4:16 AM
Hello All,
I'm using a store for my GridPanel. I have few questions
1. Can we use filter for store here while binding to grid?
2. If we can use it how to implement it?

Thanks,
SenchaShiva

mitchellsimoens
31 Oct 2011, 7:41 AM
Grids have listeners on the store they are using to listen for events when the data has changed in the store so that they can reflect those changes. So if you add, update, or destroy a row in the store, the grid will reflect these automatically. Therefore, if you use the filter method on the store, the grid will automatically pick this up and only show the rows the store tells it to.

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.Store-method-filter