I’ve come across an issue with DataGrid when sorting the grid.
With this isseue, all rows disappears when we execute this sequence of actions in one call flow:
- add one Item to the grid’s store.
- delete one item from the grid’s store
- save store
- call grid.sort.
After calling the grid.sort all rows from grid diapers (although they are still in the store). They are back if we repeat the same procedure.
I have a reproducer code for this, my custom Grid component based on DataGrid is here:
If you call the addOneDelOne of MyGrid like I’m doing in line 38 of Scenarios.js You will be able to reproduce the issue.
In this code, items are removed from the store if there are more than 4 items.
Also the issue does not appear if we sort the grid if the number of added items are grater than deleted items.
I’ve tested it on Dojo 1.9 and 1.13