View Full Version : Mark edited cell as dirty until submitted value is verified?

24 Feb 2010, 10:55 AM
So I have two problems.

1. I'm trying to mark a cell as dirty and then remove the mark once the submitted data is OK'ed.

Anyone have any leads?

2. So far I ran into some problems:

My cell is only marked as dirty when I reload the entire grid. Any have any solutions?

24 Feb 2010, 12:42 PM
The cell will be marked dirty as soon as it is changed on the client-side and until it is committed or rejected.

Re: 1, you can commit that record once it has been ok'd by the server

Re: 2, This should work out of the box. Post your grid configuration so we can help you out here.

24 Feb 2010, 12:45 PM
(It works if i do grid.getView().refresh() but it looks like it should work out of the box?)

Here's the grid and column model:

var cm = new Ext.grid.ColumnModel({
// specify any defaults for each column
defaults: {
sortable: true
columns: [{
id: 'logNameColumn',
header: 'Log',
dataIndex: 'logName',
editable: false,
editor: new Ext.form.TextField({
allowBlank: false
}, {
id: 'logLevelColumn',
header: 'Level',
dataIndex: 'logLevel',
editor: levelCombo,
renderer: Ext.util.Format.comboRenderer(levelCombo)

var grid = new Ext.grid.EditorGridPanel({
ds: logDataStore,
cm: cm,
clicksToEdit: '1',
autoExpandColumn: 'logNameColumn',
width: 500,
renderTo: 'content',
title: 'Log4j Config',
autoHeight: true,
stripeRows: true,
frame: true