[CLOSED] Update GridPanel from Store

  1. #1

    [CLOSED] Update GridPanel from Store



    I have a Store and a GridPanel on a page. I want to update a particular record in the GridPanel on the client-side, so I update the particular cell in the Store, by doing the following:

    store1.data.item(3).data.MyRandomFieldName = "New Value";
    However, this doesn't update the associated row in the GridPanel - is there a client-side function to force the GridPanel to get the new value from the Store?
  2. #2

    RE: [CLOSED] Update GridPanel from Store

    Hi,

    Try this


    store1.getAt(3).set("MyRandomFieldName", "New Value");

  3. #3

    RE: [CLOSED] Update GridPanel from Store



    Thanks for the quick response again!

    I expanded on your example slightly, so I can update a data row by it's Data ID:

    store1.getAt(store1.indexOfId(hidDataID.value)).set("MyRandomFieldName", "New Value");

Similar Threads

  1. Replies: 12
    Last Post: Aug 09, 2013, 2:25 PM
  2. [CLOSED] loop though gridpanel and update store
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 03, 2011, 8:11 AM
  3. Replies: 2
    Last Post: Sep 13, 2011, 10:49 AM
  4. Replies: 2
    Last Post: May 16, 2011, 9:19 PM
  5. Update GridPanel With Store Values
    By Ganesh3.shirsath in forum 1.x Help
    Replies: 0
    Last Post: Oct 20, 2010, 2:42 PM

Posting Permissions