Hi!
https://stackblitz.com/edit/angular-msunrc-lewqjl-rupkyo-usm7au-2rxjuc-ckgkz7?file=app.component.ts
I added to the example two buttons that represents my use case.
My use case is that my grid I add/remove rows refreshing all the grid (changin an array in the data source).
When a row is removed then the user could add it again (is an external component that modifies the array data source), the row have the same id so the persistedState maintain that the row is selected.
To test it in the example above:
1- Select the row with order id 10248
2-Press remove button -> the row is removed
3-Press add row button -> the row with order id 10248 is added again an it's selected. (I want it to remove it from the persistedState too)
Because I have filters, sorting and so, I need to use the persistedState to true, so I was asking is there is a way to access that persistedState to remove the selected row when the row is removed?
Anyway I managed to apply my own checkbox column that works better, that also solves a problem mentioned in another ticket about weird selection with arrows ands keys.
Ticket link: https://www.syncfusion.com/forums/reply/160520