1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    77
    Answers
    2
    Vote Rating
    0
    mohaskuar is on a distinguished road

      0  

    Default Unanswered: refresh grid after adding a new item to database

    Unanswered: refresh grid after adding a new item to database


    my problem is see i have add button on the grid tool bar on click a window will apear and i managed to save in database...evry thing is fine except the added item appear only after a grid refresh..i wanted to refresh the grid right after the add window is closed .to do that i tried so hard... please help...

  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


    If you are inserting the data into the store, the grid will display the new record immediately.

    Code:
    var values = form.getValues();
    store.insert(0,values);
    Scott.

  3. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    77
    Answers
    2
    Vote Rating
    0
    mohaskuar is on a distinguished road

      0  

    Default


    no i directly inserted the data to database with out using a store and i think that was why the store.sync() function was not working for me to refresh the gird......but i tried to reload the store again and it works fine using store.load() function...the grid finally refreshed ..problem solved..... scottmartin 10ks for ur usual support .

Thread Participants: 1

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