I'm dealing with an EditorGrid with its ColumnConfigs and his store.
After the grid's been filled, a sorting is applied with the line:
An add button adds a new empty register to the grid's store and an empty row is displayed in the top of the list (because of the SortDir.ASC parameter). I fill the fields of the new row, everything fine.
Second add, second empty row in the top of the list. From this moment if I click over any editable field of the grid, an editor appears in the cell to change its value, as expected, but, and here is the reason of my question, the content loaded into the editor is the text of the row below.
(last added row)
On clicking the Code cell of the row with AAA, appears the editor with BBB inside.
I've realized that this strange behaviour doesn't appear if the grid is not sorted.
Also say that in other grids, I override the preProcess() and postProcess() functions to work with this value before and after the editor's action. but NOT in this case. I add the editor in this simple way:
Is this a bug or am I forgetting something?
TextField<String> textFieldCode = new TextField<String>();
Thanks in advance.