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

can't copy cells on full editable rows #7915

Closed
RaulCote opened this issue May 2, 2024 · 1 comment
Closed

can't copy cells on full editable rows #7915

RaulCote opened this issue May 2, 2024 · 1 comment

Comments

@RaulCote
Copy link

RaulCote commented May 2, 2024

I'm submitting a ... (check one with "x")

[x] bug report => see 'Providing a Reproducible Scenario'

Providing a Reproducible Scenario
A plunker: https://plnkr.co/edit/L9pC0Ofv5sj4If39?open=index.tsx

Current behavior
When full row edit is allowed, and we are on editable mode cells can't be copied. Try copying any of the cells from the Read Only columns.
On my real app we are using processCellForClipboard and sendToClipboard in order to process it by ourselves. Neither of those events are fired when using Command + C on Mac, but the plunker is more simple and it doesn't work as well.

Expected behavior
On version 28 it was possible to copy cells from full editable rows, we are on the process of updating our app to current ag grid version but it seems this feature got lost or needs a specific set up that is not detailed on the docs/changelog.

Please tell us about your environment:
Mac

  • AG Grid version:
    Version 30 but it looks like in 31 is still an issue as well.

  • Browser:
    It doesn't matter, in both Chrome and Firefox it happens.

  • Language:
    Typescript

@RaulCote RaulCote changed the title can't copy read only cells on full editable rows can't copy cells on full editable rows May 2, 2024
@AG-Zoheil
Copy link

Hi @RaulCote,

Thanks for raising this on GitHub.

This is not a bug but expected behaviour. You would not be able to copy the read only cell as it is not selectable in this mode. However by setting enableCellTextSelection={true} you would be able to copy the cells in the read only columns. See this implemented here: https://plnkr.co/edit/hwXPAvR7vMhdTmoJ?open=index.tsx

Kind regards,
Zoheil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants