I have a grid of which store is filtered in server side. This is the store:
var _store = Ext.create('Ext.data.Store', {
model: isemriModel,
storeId: 'storeFiltered' + _id,
pageSize: 5,
autoLoad: { filter: JSON.stringify(filterObject) },
proxy: {
type: 'ajax',
actionMethods: {
read: 'POST'
},
url: _url,
extraParams: {
kullaniciAdi: _userName,
sifre: _password,
filter: JSON.stringify(filterObject)
},
reader: {
rootProperty: 'isemirleri',
totalProperty: 'totalCount'
}
},
listeners: {
beforeload: function (store, operation, opts) {
},
load: function (store) {
}
}
});
Here is my problem: When I make a search for records which contains specific letters, names etc (for example names containing a). First page appears correct. But when I change the grid page from paging toolbar, filter parameter is cleared and non filtered records appears.
I also tried
store.load({ params: { filter: JSON.stringify(filterObject) } });
but it does not work. Can anybody help?
Attention: I make the filtering at server side, not at ext store. Is it possible to load store with dynamically changing parameters using a grid with paging toolbar.