igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

Selected cell moves to the right column when column that has selected cell becomes hidden

Open ymita opened this issue 7 years ago • 3 comments

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

  1. Run the attached sample
  2. Open browser's developer tool
  3. Select a cell on 'ID' column
  4. Click 'Toggle ID column' button
  5. 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

igx-grid-hiding-selection.zip

ymita avatar May 17 '19 05:05 ymita

The same behavior is observed by hiding IgxColumnLayout (Multi-Row Layout).

ymita avatar May 17 '19 06:05 ymita

@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 avatar May 17 '19 06:05 nrobakova

@nrobakova Thank you for pointing it out!

ymita avatar May 17 '19 07:05 ymita