[FNR] RowEditor changes read only field after Cancel + another RowEditor problem

[FNR] RowEditor changes read only field after Cancel + another RowEditor problem

Actually, I was trying to track another issue, but building the testcase I found this one:
- You have an EditorGrid with a read only column (no CellEditor) and an editable column (with CellEditor)
- You are using the RowEditor plugin

- Click on the first line to show the RowEditor
- Cancel editing
- Click on the second line

Surprisingly, the read only value of the first column in the first line gets changed to the value of the second line (and the red triangle is shown).

Actually, I was trying to track another issue: I have a grid which looks almost like to the one of the testcase (but more columns and using CellEditor(ComboBox). On the first grid load, the RowEditor works fine. After grid.getStore().removeAll and loading data again, the RowEditor crashes in startEditing at this line:

Code:

Object val = cm.getEditor(i).preProcessValue(record.get(dIndex));

I'm not able to track it exactly (the testcase contains a refresh button to test this - but it works [in the testcase...]).

Could it be, that the code is crashing, as there is no check, if there is any CellEditor?

Shouldn't startEditing contain the same check on "no field" or "LabelField" as stopEditing (code position may be wrong)?

I was able to reproduce it. The problem is that you are using an EditorGrid together with the RowEditor. The RowEditor adds editors for the non editable cells(LabelFields are added) and that interfer with the EditroGrid.