Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Hybrid View

  1. #1
    Ext GWT Premium Member
    Join Date
    Oct 2009
    Posts
    131
    Vote Rating
    5
    zlevardy is on a distinguished road

      0  

    Default Unanswered: grid paging reset?

    Unanswered: grid paging reset?


    hi,

    i am using a store to do my search needs with extraParams. It works fine. Until i do a store.load() after set proxy.extraParams, and the paging toolbar gets confused. It shows earlier search result. For example first search found 4 pages of items, next one only 2. And I was on page 3 when close results windows, then new search will show something (i guess page 1), but the toolbar is "3" as we should be on page 3, no next, no prev works.

    how can I reset paging toolbar after finished search? or how can i set store to defaults and get the reflected on paging toolbar?

    many thx

  2. #2
    Ext GWT Premium Member
    Join Date
    Oct 2009
    Posts
    131
    Vote Rating
    5
    zlevardy is on a distinguished road

      1  

    Default


    solution found here: http://www.szabogabor.net/2012/06/03...idpager-reset/

    Code:
    store.loadRecords([]); //set totalCount to zero
    
    pager.onLoad();        //refresh paging toolbar
    cu
    Last edited by zlevardy; 23 Sep 2012 at 11:26 PM. Reason: wrapping comment and pager.onLoad() was missing

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Posts
    2
    Vote Rating
    0
    harryrowell is on a distinguished road

      0  

    Default Simple Answer

    Simple Answer


    From another thread, I was pleasantly surprised to discover that you do NOT need to reset the pager directly.

    I simply called removeAll and reset the page to 1 before calling load like this:

    Code:
        store.removeAll();
        store.currentPage = 1;
    
        store.load();
    and the pager began working exactly as it should.

Thread Participants: 1