Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Location
    USA
    Posts
    29
    Answers
    2
    Vote Rating
    0
      0  

    Default 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,099
    Answers
    113
    Vote Rating
    100
      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
      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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •