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

      0  

    Default Unanswered: Refreshing grid not working after store.sync();

    Unanswered: Refreshing grid not working after store.sync();


    I have added successfully data to server and get json back so that I have success = true. After adding, my grid doesn't sync data (just after pressing F5 for refresh whole page). In handler for success I've put:

    var store = Ext.getStore('Workers');
    store.sync();

    I've checked and I really get store Workers but the sync is not working.

    I think that when I reload data in store, data in grid should be also reloaded.

    EDIT:

    I've tried this too:

    Ext.getCmp('workerlist').getView().refresh();

    EDIT 2:

    This worked:
    var store = Ext.getStore('Workers');
    store.load();

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


    Glad you got it working.

    Scott.

  3. #3
    Sencha User metalinspired's Avatar
    Join Date
    Apr 2012
    Posts
    98
    Answers
    4
    Vote Rating
    4
    metalinspired is on a distinguished road

      0  

    Default


    Maybe sync() didn't work because there were no changes to sync with db.
    load(), on the other hand, simply loads the store, it doesn't care about any changes made.

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