I am using ag-grid to bind values from a list, Is it possible to copy the value/data in the selected cell. I have tried to copy the value using ctrl+c but its not working is there any other way?
Please help me!
Cells can be copied by dragging a range with the mouse and hitting Ctrl + C . When cells are pasted from the clipboard, values are prefixed with 'Z-'. Cells can be pasted by hitting Ctrl + V .
Select 'Copy' from the context menu that appears when you right click over a cell. Press keys Ctrl+C while focus is on the grid.
selectionChanged. Row selection is changed. Use the grid API getSelectedNodes() or getSelectedRows() to get the new list of selected nodes / row data.
There is a flag which will allow you to select text and then CTRL+C will work.
enableCellTextSelection=true
This is not an enterprise config and can be at any time to enable cell text selection.
You can do this using CSS below:
.ag-font-style {
user-select: initial;
-moz-user-select: text;
-ms-user-select: text;
-webkit-user-select: text;
}
This should work in any of the browsers viz IE, Chrome, Mozilla and may be Safari.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With