reactgrid icon indicating copy to clipboard operation
reactgrid copied to clipboard

Dropdown cells copy label instead of value

Open aslanovsergey opened this issue 1 year ago • 3 comments

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

aslanovsergey avatar Aug 26 '24 12:08 aslanovsergey

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.

MichaelMatejko avatar Sep 11 '24 09:09 MichaelMatejko

@MichaelMatejko thanks but it's not clear which property is responsible for copy, I tried all but none helped

aslanovsergey avatar Nov 11 '24 13:11 aslanovsergey

v5 alpha does not seem to have a dropdown template at the moment. @MichaelMatejko

dev-seahouse avatar Nov 19 '24 13:11 dev-seahouse