| 12
 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
 41
 42
 43
 44
 
 | Ext.define('PP.store.InfPs', {
    extend      : 'Ext.data.Store',
    model       : 'PP.model.InfP',
    autoLoad    : false,
    storeId     : 'storeIdInfP',
 
    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: {
        type        : 'jsonp',
        limitParam  : 'rows',
        pageParam   : 'start',
 
        reader: {
            totalProperty   : 'total', // si omit alors totalProperty prend aussi la valeur "total"
...
            messageProperty : 'message',
            successProperty : 'success',
            root            : 'rows'
        },
        listeners : {
                exception : function(proxy, response, operation) {
                    //exception handling
                    alert('Error in InfP');
                }
        },        
        // sends single sort as multi parameter
        simpleSortMode      : true
    },
    sorters: [{
        property : 'pd',
        direction: 'DESC'
    }]
 
 }); | 
Partager