PDA

View Full Version : Multiple Grids, One Store - just filtered



mjhaston
26 Jun 2014, 6:19 AM
I have 6 grids on a panel. Each time I create a grid, I create an instance of the store. It's becoming a bit of a pig, processing all 6 at once. The monthly grids show numbers by month, the year-to-date just keep a running total.

The only difference for the store is the first column grids passes a code of "A02" to the store. The second passes "B02" and the third "C02".

Can I load this store one time with everything and then just filter those results with each grid? Maybe even do the y-t-d totals within the grid?

evant
26 Jun 2014, 6:22 AM
This feature was added into 5.x, see: http://docs.sencha.com/extjs/5.0.0/apidocs/#!/api/Ext.data.ChainedStore

mjhaston
26 Jun 2014, 6:48 AM
Unfortunately ExtJS 5.0 is not an option for me right now.