Steps to reproduce:
- Run the sample: CodePen.
- Select the row with id=3.
- Click the "Remove id=3" button.
- Select any other row.
- Open the console.
Expected results:
The "Select All" checkbox is not checked. The console logs one row object
Current results:
The "Select All" checkbox is checked. The console logs two row objects but one is selected.
Additional information:
The issue occurs only if repaintChangesOnly is enabled.
Workaround
Set DataGrid.keyExpr and use the Push API to remove the row:
JavaScriptconst list = myData.filter((item) => item.id !== 3);
grid.option("dataSource", list);
grid.getDataSource().store().push([{ type: 'remove', key: 3 }])