Hi
I use following code to update ListGrid row via form:
I change old value to new one, save record to grid. Updated cell becomes highlighted with blue font color.
Then I update the same field from new value to old one and save record to grid again.
The updated cell in grid is not marked as updated any more.
However grid.hasChanges() still returns true. And when I call grid.saveAllEdits() I get update request on server where <data> and <oldValues> are equal.
Is it correct?
I use following code to update ListGrid row via form:
Code:
grid.addRecordClickHandler(new RecordClickHandler() { public void onRecordClick(RecordClickEvent event) { editRowNumber = event.getRecordNum(); editForm.editRecord(grid.getEditedRecord(editRowNumber)); } }); .... saveButton.addClickHandler(new ClickHandler(){ @Override public void onClick(ClickEvent event) { grid.setEditValues(editRowNumber, editForm.getValues()); grid.endEditing(); } });
Then I update the same field from new value to old one and save record to grid again.
The updated cell in grid is not marked as updated any more.
However grid.hasChanges() still returns true. And when I call grid.saveAllEdits() I get update request on server where <data> and <oldValues> are equal.
Is it correct?
Comment