1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| Ext.define('PX.store.InfPXs', {
extend : 'Ext.data.Store',
model : 'PX.model.InfPX',
autoLoad : false,
storeId : 'storeIdInfPX',
remoteSort : true,
// allow the grid to interact with the paging scroller by buffering
buffered : true,
leadingBufferZone : 10, // The number of records to keep rendered below the visible area.
trailingBufferZone : 10, // The number of records to keep rendered above the visible area.
numFromEdge : 5, // How close the edge of the table should come to the visible area before the table is refreshed further down.
pageSize : 25,
purgePageCount : 0,
proxy: {
timeout : 240000,
// load using script tags for cross domain, if the data in on the same domain as
// this page, an HttpProxy would be better
type : 'jsonp',
limitParam : 'rows',
pageParam : 'start',
reader: {
//type : 'jsonp',
totalProperty : 'total', // si omit alors totalProperty prend aussi la valeur "total"
totalMaxscore : 'totalMaxScore',
messageProperty : 'message',
successProperty : 'success',
root : 'rows'
},
simpleSortMode : true
},
sorters: [{
property : 'pd',
direction: 'DESC'
}]
}); |
Partager