Bonjour à tous,

Je voudrais savoir comment je peux limiter le chargement automatique des pages de mon InfiniteGrid à une à la fois ?

Actuellement mon store est configuré comme ci-dessous et il charge 3 pages directement. Et 25 résultats / page

Petite précision, ma grille possède des lignes assez grandes en hauteur et du coup l'utilisateur ne voit que les 5 premières lignes.
Ensuite vers la ligne 68/75, il charge la page 4 et juste la page 4

Mais comment le configurer, si bien sûr c'est possible, pour qu'il ne charge qu'une seule page à la fois dès le départ ?

D'avance merci !

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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'
    }]
 });