Grid selection after last row remove


#1

After last row in grid removed, selection still keeps it as selected.
Sample is there: https://snippet.dhtmlx.com/e6psfuhk

click on “alert” toolbar’s button, it should show 1 value - id of selected row, and it is fine.
Now click on ‘Remove’ button - grid is empty now. Then click on '“alert” again - it shows 1 value again, but row with id=1 not exists in grid, so it cannot be selected.


#2

Thank you for your report. The problem is confirmed. We’ll try to fix it in one of the future updates.
For now, I can only suggest you clear the removed row from the selection pool manually.