Changing a GridPanel cell value with getSelected().data.field_name does not work

  1. #1

    Changing a GridPanel cell value with getSelected().data.field_name does not work

    Hey guys, I have a grid which after updating the data on the db I need to hard-code one of the cell's value which initial value was databound, I tried the following code but it is not doing anything, could you please point me to the right direction?
    Thanks

    Doesn't change the cell value;
    Ext.getCmp("GridPanel1").getSelectionModel().getSelected().data.stat_name = "Hello"
  2. #2
    I wanted to mention also that I have a Template Column which displays an image and when I call the following code it doesn't update the Template column, is there a way of doing it without reloading the store?

    This code updates everything except for the Template Column plus I need to update a cell manually after this line which I still don't know how to do.

    Ext.getCmp("frmDetails").getForm().updateRecord(Ext.getCmp("GridPanel1").getSelectionModel().getSelected());

Similar Threads

  1. [CLOSED] Move up/down gridpanel , delete gridpanel data can not work
    By gs_user in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 27, 2012, 1:37 AM
  2. Replies: 1
    Last Post: Mar 22, 2012, 11:36 AM
  3. [CLOSED] GridPanel Cell Tooltips doesn't work in user control
    By skisly in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 09, 2011, 2:57 PM
  4. Replies: 0
    Last Post: Dec 22, 2010, 8:33 AM
  5. Replies: 5
    Last Post: Aug 13, 2010, 7:36 AM

Posting Permissions