Skip to content

Instantly share code, notes, and snippets.

@weeksdev
Created January 9, 2014 18:59
Show Gist options
  • Select an option

  • Save weeksdev/8339884 to your computer and use it in GitHub Desktop.

Select an option

Save weeksdev/8339884 to your computer and use it in GitHub Desktop.
ExtJS: Getting Other Data from Store Load
Ext.define('app.store.Reviews', {
extend: 'Ext.data.Store',
model: 'app.model.Review',
pageSize: 200,
remoteSort: true,
// allow the grid to interact with the paging scroller by buffering
buffered: true,
proxy: {
type: 'ajax',
url: 'review/list',
reader: {
type: 'array',
root: 'list',
totalProperty: 'count'
},
filterParam: 'query'
},
listeners: {
load: function (store,records,successful,eOpts) {
//older
console.log(store.proxy.reader.jsonData);
//4.2
console.log(store.getProxy().getReader().jsonData);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment