1. #1
    Sencha User
    Join Date
    Jul 2012
    Location
    USA
    Posts
    29
    Answers
    2
    Vote Rating
    0
    jenis35@yahoo.co.in is on a distinguished road

      0  

    Default Answered: ExtJS 4 grid update the grid after adding a new record

    Answered: ExtJS 4 grid update the grid after adding a new record


    Hi All,

    I am working on Ext Grid. and I use proxy to do CRUD operations. But my problem is that, once I add the new row in grid, I am not able to update the grid with new record. Could anyone help me out in this or give me hint ? I am using Spring MVC, Mybatis.

    Thanks.
    J.M.

  2. reload the store on write event:

    Code:
    store.on('write', function() {
      store.load();
    });

  3. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,074
    Answers
    111
    Vote Rating
    94
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      2  

    Default


    reload the store on write event:

    Code:
    store.on('write', function() {
      store.load();
    });

  4. #3
    Sencha User
    Join Date
    Jul 2012
    Location
    USA
    Posts
    29
    Answers
    2
    Vote Rating
    0
    jenis35@yahoo.co.in is on a distinguished road

      0  

    Default


    Hi Farish,

    Thanks for the information, I got it working by other code. I used store.sync() to sync with my server side code. Actually, I had to make changes in spring service code.

    Thanks.
    J.M.

Thread Participants: 1

Tags for this Thread