1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    3
    Vote Rating
    0
    filosssof is on a distinguished road

      0  

    Default Unanswered: How can I use localstorage for my grid with infinite scroll?

    Unanswered: How can I use localstorage for my grid with infinite scroll?


    Hi, excuse me for my bad English, this is not my native language.
    I want to ask you about localstorage and infinite grid. I use Ext 4.1. I connected localstorage to my grid and I can use CRUD operation with it. But I want also create infinite scroll into my grid. I used this part of code into my grid:
    Code:
    verticalScrollerType: 'paginggridscroller', 
    loadMask: true,
     disableSelection: true,
    invalidateScrollerOnRefresh: false, 
    viewConfig: {trackOver: false}
    and this is my store

    Code:
      Ext.define('GB.store.LocalStorage', {    extend: 'Ext.data.Store',
        model: 'GB.model.Message',
        autoLoad:true,
        autoSync:true,
             pageSize: 15,
            // allow the grid to interact with the paging scroller by buffering
            buffered: true,
            // never purge any data, we prefetch all up front
            purgePageCount: 0,
        proxy: {
            type: 'localstorage',
            id  : 'guestbookMessages',
            extraParams: {
                    total: 50000
                },
            simpleSortMode: true
        }
    });
    I see first 10 records without scroll, if I set pageSize:50 I see scroll, but it isn't infinite. Number of records is about 100.
    What can I do?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,112
    Answers
    678
    Vote Rating
    470
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    I would say you hit a limit of localStorage .. why would you want to do this anyway?

    Scott.

Thread Participants: 1

Tags for this Thread