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

Selected cell moves after sorting is performed

Open ymita opened this issue 7 years ago • 2 comments

Description

Selected cell moves after sorting is performed.

  • igniteui-angular version: 7.3.0
  • browser: n/a

Steps to reproduce

  1. Run the attached sample
  2. Click 'Apple' on 'Name' column
  3. Click header on 'Name' column to perform sorting

Result

Selected cell becomes 'Grape'.

Expected result

Selected cell remains 'Apple', or selected cell is cleared.

Attachments

igx-grid-sorting-selection.zip

ymita avatar May 17 '19 06:05 ymita

@ymita this is by design. The selection is index based (DOM elements selection). So when user sort the cell in same column and row should be 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 07:05 nrobakova

@nrobakova Thank you for pointing it out!

ymita avatar May 27 '19 00:05 ymita