Sep 03, 2010, 3:55 PM
[CLOSED] Set cell value in grid from handler
I am not able to change the string value of a cell in my grid.
Here is the code from the button listener handler...
=================
Both before and after alert shows the same value. No javascript error, but the cell is marked as dirty and fires OnBeforeStoreChanged when the grid is saved. Saves the old value and not the new value 'false' that I am trying to set.
Appreciate your help.
- Naren
Here is the code from the button listener handler...
=================
#{GridPanel1}.getRowEditor().startEditing(thisRecID);
alert('before=' + #{GridPanel1}.getSelectionModel().getSelected().get('Active'));
#{GridPanel1}.getSelectionModel().getSelected().set('Active','false');
#{GridPanel1}.getRowEditor().stopEditing();
alert('after=' + #{GridPanel1}.getSelectionModel().getSelected().get('Active'));
=================Both before and after alert shows the same value. No javascript error, but the cell is marked as dirty and fires OnBeforeStoreChanged when the grid is saved. Saves the old value and not the new value 'false' that I am trying to set.
Appreciate your help.
- Naren
Last edited by Daniil; Sep 03, 2010 at 6:30 PM.
Reason: [CLOSED]