igniteui-angular
igniteui-angular copied to clipboard
Selected cell moves to the right column when column that has selected cell becomes hidden
Description
Selected cell moves to the right column when the column that has the selected cell becomes hidden.
- igniteui-angular version: 7.3.0
- browser: n/a
Steps to reproduce
- Run the attached sample
- Open browser's developer tool
- Select a cell on 'ID' column
- Click 'Toggle ID column' button
- Click 'Get selected cell' button
Result
- Cell on the Country column becomes selected.
- On the developer tool's console, the column index of the selected cell becomes 1.
Expected result
- Cell on the Country column does not become selected.
- On the developer tool's console, the column index of the selected cell remains 0.
Attachments
The same behavior is observed by hiding IgxColumnLayout (Multi-Row Layout).
@ymita this is by design. When a user hides a column the cell next to that column becomes selected. You can look at the documentation for selection with all other features: https://github.com/IgniteUI/igniteui-angular/wiki/Grid-Multi-cell-selection-Specification#33-other-igxgrid-features-integration
@nrobakova Thank you for pointing it out!