Change grid cell value

  1. #1

    Change grid cell value

    Friends,
    I Trying to change the value of a cell in a grid based on the string variable, Any ideas?

    Also, can I loop through the rows of gridPanel, I've gone through all in discussions and I could not find anything useful.


    Thanks for any help.

  2. #2

    RE: Change grid cell value

    Hi,

    Update record field (cell) by record id
    grid.store.getById('id').set('dataindex', 'newvalue')

    By index
    grid.store.getAt(index).set('dataindex', 'newvalue')

    If you need to call it at the server side then just register those scripts using AddScript

Similar Threads

  1. [CLOSED] Change grid cell color
    By BGeorge in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Dec 12, 2011, 5:05 AM
  2. [CLOSED] Unable to change grid cell attributes
    By GLD in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: May 23, 2011, 11:44 AM
  3. [CLOSED] Change grid cell color on fly
    By 78fede78 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 03, 2010, 1:27 PM
  4. [CLOSED] Change the value of a grid cell
    By tms in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 15, 2010, 7:43 AM
  5. Replies: 2
    Last Post: Jun 14, 2010, 1:34 PM

Posting Permissions