[4.2.1 883] Grid.getSelectionModel().getLastSelected() not refreshed!
I have put one grid and one form together to manage a simple list data.
I call grid.reload method to refresh the grid data when I add new row or update one row every time. But the grid.getSelectionModel().getLastSelected() method was not refreshed when I update one row more than 2 times, I call form.loadRecord method to display the row info, but the form data was not I have updated before. Here is a simple table to show the issue:
Times, Real Value, Form displayed value
1, A, A
2, AB, A
3, ABC, AB
4, A, ABC
But when I click another row in the grid and then to edit the row, everything is ok, no problem.
So I think this must be a issue about the grid component.
It's a simple issue. First I use a form to save data and use grid.reload() method to refresh the grid data. Second I use form.loadRecord method to edit one row of the grid, after edit successfully, I edit the same row of the grid again and again, the issue was occured. the values were displayed in the form were not the last I have edited.
Can you understand clearly? Just a normal operation by editing one grid row again and again.