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

[igx-grid] Grid range selection flaky when another row is active

Open pmoleri opened this issue 1 year ago • 3 comments

Description

  • igniteui-angular version: 16.0.15
  • browser: all

Steps to reproduce

Scenario 1: Having rowSelection=multiple && cellSelection=multiple

  1. Add a grid with multi-selection enabled
  2. Click on a cell of Row 2 (the cell gets activated and row selected)
  3. Click on selection checkbox of Row 8
  4. Shift+Click on a field of Row 5

Result

It simultaneously adds different ranges for cell and row selection. image

Scenario 2: Having rowSelection=multiple && cellSelection=None

Select a range clicking on fields.

Result

image

Expected result

To be defined. Maybe only one of the actions should take precedence? Text selection should never happen when row range selection is being done.

pmoleri avatar Aug 16 '23 21:08 pmoleri

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Nov 25 '23 00:11 github-actions[bot]

I examined the behavior with rowSelection and cellSelection both set to multiple and it appears that the grid's functionality is operating as designed. The selection is dynamically updated based on user interaction and the last cell clicked when using Shift+Click dictates the new range for selection. This allows for a flexible and intuitive user experience, I would guess. Regarding scenario 2 - I was not able to received the same result and did not get the text in blue as in the screenshot. Thus, based on my findings, this issue does not reflect a bug but rather the intended behavior of the grid's multi-selection feature (at least for scenario 1).

valeriatoneva avatar Jan 19 '24 15:01 valeriatoneva

I examined the behavior with rowSelection and cellSelection both set to multiple and it appears that the grid's functionality is operating as designed. The selection is dynamically updated based on user interaction and the last cell clicked when using Shift+Click dictates the new range for selection. This allows for a flexible and intuitive user experience, I would guess. Regarding scenario 2 - I was not able to received the same result and did not get the text in blue as in the screenshot. Thus, based on my findings, this issue does not reflect a bug but rather the intended behavior of the grid's multi-selection feature (at least for scenario 1).

Thanks @valeriatoneva for the detailed research and feedback. I agree with you Scenario 1 is not a bug therefore.

Scenario 2 - @sdimchevski I wonder if you have any recommendations/requirements on whether cell text should be "markable", i.e. a user should be able to select/mark it as a regular text in the page. I will wait for your input before proceeding or closing the issue.

hanastasov avatar Jan 22 '24 12:01 hanastasov

@sdimchevski

hanastasov avatar Mar 11 '24 07:03 hanastasov

Closing due to inactivity and low priority.

hanastasov avatar Mar 25 '24 11:03 hanastasov