Editing grid: issue on selecting rows after record insertion

Editing grid: issue on selecting rows after record insertion

I use a grid with a RowEditor to read, update, create and destroy record.
Records are correctly inserted, updated and read from/to the server and are correctly displayed in the grid (one can modify inserted records or delete them).

However if a record is created and thereafter saved (calling store.save()) then if one selects it then such row can't be deselected any longer; so that record remains in a select state.

For inserted record the id property is correctly set and phantom, dirty are set to false.

I made some more checks and found out the problem is with the view: inserted record are correctly selected and deselected but the view doesn't update the selection state and keep showing inserted record as selected (gray) once it becomes selected for the very first time.