Results 1 to 6 of 6

Thread: Need to update grid items automatically when any changes made

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    171
    Vote Rating
    0
      0  

    Red face Need to update grid items automatically when any changes made

    Hello folks,
    i am using extjs 3.0 i have done a grid and in that i have some items. whenever i change the grid items and exit is done item has to be update automatically. please help me out about this.


    Thanks in advance.
    Samarth M

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,385
    Vote Rating
    1540
      0  

    Default

    What do you mean exit? Also, I have moved this from the Bugs forum to the Help forum as you are not reporting a bug.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    171
    Vote Rating
    0
      0  

    Default updation of grid items

    Hello mitchellsimoens

    I have grid in which some items are there there i will open a window by using my own function. In that pop up window there are three buttons Edit Save Close.
    When edit is clicked i can edit the items. when save is clicked i have called update query in Sql. it will update the items when i edited. when i view in database items have been updated. when close button is clicked pop up window will close. When i see the grid the changed items are in the same status items didn't updated in grid so i need to update the items of grid when close button is clicked. Please give the solution for this issue.


    Thanks in advance,

    Samarth Manjunath.

  4. #4
    Sencha User darthwes's Avatar
    Join Date
    Mar 2010
    Posts
    633
    Vote Rating
    -12
      0  

    Default

    Uhm,

    1. Set up the store with a Ext.data.DataWriter.
    2. When the grid updates, the backend (that does the update) needs to respond with results (the modified row(s)) AND a success indicator, both of which should be configured in your store (as 'root' and 'successProperty').
    3. ???
    4. Profit
    Wes

  5. #5
    Sencha User
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    171
    Vote Rating
    0
      0  

    Default updation of grid items

    hello

    Thanks for reply i will try now..

    Thank you

    Samarth Manjunath.

  6. #6
    Sencha User
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    171
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by darthwes View Post
    Uhm,

    1. Set up the store with a Ext.data.DataWriter.
    2. When the grid updates, the backend (that does the update) needs to respond with results (the modified row(s)) AND a success indicator, both of which should be configured in your store (as 'root' and 'successProperty').
    3. ???
    4. Profit
    Hi darthwes,

    I got this solution that store of grid reloading whenever we needed then automatically grid items will be updated whenever we are adding data to the grid.
    Samarth Manjunath

Posting Permissions

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