Created
January 9, 2014 18:59
-
-
Save weeksdev/8339884 to your computer and use it in GitHub Desktop.
ExtJS: Getting Other Data from Store Load
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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