1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    50
    Answers
    4
    Vote Rating
    0
    marc123 is on a distinguished road

      0  

    Default Unanswered: Reload store with dynamic values

    Unanswered: Reload store with dynamic values


    Hi,

    I have a gridpanel with a paging toolbar. There are 3 pages. There is a timer configured on the gridPanel's dataStore so I can configure the dataStore to perform a reload after nn secs. The load() accesses a backend and sends along parameters like startRow and maxrows. Problem is, those params are static: maxrows=15 and startrow=0. That's fine if a reload takes place when page 1 is displayed in the grid but when page 3 is displayed, a reload retrieves the data for the first page. Worse, the pageindicator keeps indicating page 3 is shown.
    So how can I send te _actual_ value of the dataStore property startRow with the load() call?

    Marc

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Answers
    656
    Vote Rating
    443
    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


    What do you want to happen ... reload page 1 with it's data, or remain on page 3 with page 3 data?

    Scott.

  3. #3
    Sencha - Community Support Team
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    346
    Vote Rating
    113
    vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all

      0  

    Default


    It seems that marc123 wants to re-load the current page. If so, you should use <store>.loadPage(<store>.currentPage).

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi