JavaScript
Run Code
Open in Fiddle
loadI = 0; // create the Data Store var store = Ext.create('Ext.data.Store', { autoLoad: false, remoteFilter: true, proxy: { type: 'ajax', url: 'http://www.example-url.php', reader: { type: 'json', rootProperty: 'results' } }, listeners: { load: function(){ loadI++; Ext.Msg.alert('Store load', 'The store has loaded '+loadI+' time(s)!'); } } }); Ext.application({ name : 'Fiddle', launch : function() { Ext.Msg.alert('Fiddle', 'Ready.'); //These methods will prevent the load listener being triggered, still the URL is loaded 3 times //store.suspendEvents(); //store.getProxy().suspendEvents(); store.filters.add(new Ext.util.Filter({ property: 'test1', value : true })); store.filters.add(new Ext.util.Filter({ property: 'test2', value : 'testfilter' })); store.load(); } });