PDA

View Full Version : One Store class for two different grids



env0ke
5 Feb 2012, 11:12 PM
Hello,

I set store class and try use for two grids. In first grid i set filters, but when i use second grid - it have filters from first grid. How i can use one store class for more different grids?

vietits
5 Feb 2012, 11:25 PM
You should create each store instance for each grid.

env0ke
5 Feb 2012, 11:30 PM
vietits (http://www.sencha.com/forum/member.php?362966-vietits) ,

For each grid set
var store = Ext.create('myApp.store.myStore', {...}) ?

vietits
5 Feb 2012, 11:57 PM
Yes, that is what I mean.