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

Dropdown cells copy label instead of value #430

Open
aslanovsergey opened this issue Aug 26, 2024 · 1 comment
Open

Dropdown cells copy label instead of value #430

aslanovsergey opened this issue Aug 26, 2024 · 1 comment

Comments

@aslanovsergey
Copy link

I have dropdown columns where I have value as some specific code and label where user friendly string is displayed.
When I copy rows with dropdown columns specific values are copied, is there a way to copy labels instead values?

Your environment details

  • Device: desktop
  • OS: Windows
  • Browser: chrome
@MichaelMatejko
Copy link
Contributor

You can clone the dropdown cell and change it's behavior in getCompatibleCell() - return a cell without labels for example.
https://github.com/silevis/reactgrid/blob/master/src/lib/CellTemplates/NumberCellTemplate.tsx

Or try our band new v5-alpha release.

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