Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IgxHierarchicalGrid: cell copying yields wrong results when previous rows are expanded #12472

Closed
ddaribo opened this issue Dec 20, 2022 · 0 comments · Fixed by #12474, #12475 or #12476
Closed
Assignees
Labels
🐛 bug Any issue that describes a bug grid: copy-paste grid: hierarchical-grid version: 14.2.x version: 15.0.x version: 15.1.x ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.

Comments

@ddaribo
Copy link
Contributor

ddaribo commented Dec 20, 2022

Description

Copying cells does not yield expected results when there are expanded rows, placed before the rows that are being copied.

  • igniteui-angular version: 15.x, 14.2.x
  • browser: any

Steps to reproduce

  1. Open any hierarchical grid sample, for instance this one.
  2. Expand arbitrary rows - for example the ones with "Artist" values "Naomí Yepes" and "Ahmad Nazeri".
  3. Select a cell/cells from any row below the expanded ones - for example the row with "Artist" value "Eva Lee".
  4. Copy the cell/s - CTRL + "C".
  5. Paste anywhere.

Result

The copied and pasted value is "Artist Pablo Cambeiro", so it corresponds to the cell from the row that is as many rows below the selected one, as the number of expanded rows above (2 in this example).
Valid for child grids as well.

Expected result

The pasted value to be the one that was selected and copied - "Artist Eva Lee".

Attachments

hgrid-copy-cells-issue-0

In case a previous row is not expanded, the copy operation result is correct:
hgrid-copy-cells-issue-01

@ddaribo ddaribo self-assigned this Dec 20, 2022
@ddaribo ddaribo added 🛠️ status: in-development Issues and PRs with active development on them and removed 🆕 status: new labels Dec 22, 2022
@ddaribo ddaribo linked a pull request Dec 22, 2022 that will close this issue
14 tasks
@ddaribo ddaribo added ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. and removed 🛠️ status: in-development Issues and PRs with active development on them labels Dec 22, 2022
@ddaribo ddaribo linked a pull request Dec 22, 2022 that will close this issue
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment