javascript - Ext Js store parameters change when the grid page changes -
i have grid of store filtered in server side. 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 problem: when make search records contains specific letters, names etc (for example names containing a). first page appears correct. when change grid page paging toolbar, filter parameter cleared , non filtered records appears.
i tried
store.load({ params: { filter: json.stringify(filterobject) } });
but not work. can help?
attention: make filtering @ server side, not @ ext store. possible load store dynamically changing parameters using grid paging toolbar.
on load function set again filter current page. if store same, pages have differents filters. infact if try return filtered page you'll se filter isn't cleared.
simply every page can have different filter.
remember clear page filters if use same filter in more 1 page
Comments
Post a Comment