PDA

View Full Version : Change grid cell value



gpcontreras
Feb 02, 2010, 5:19 PM
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.

Vladimir
Feb 02, 2010, 5:24 PM
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