This is a migrated thread and some comments may be shown as answers.

Copy cell text to clipboard whith multiselect

1 Answer 426 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 04 Aug 2014, 10:39 PM
Hi,
I'm trying to find a way to copy cell content to clipboard. It seems when grid is in multiselect mode, cell content is not available for selecting and coping.
I've tried to add context menu to each cell but with "multiselect row" target is always first TD.
Please advise.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 05 Aug 2014, 08:40 AM
Hi Rob,

This functionality is not supported out of the box. When a selection is performed, the Grid rows receive the k-state-selected class, but the text in the Grid cells is not highlighted. You could implement some custom solution, for example highlight the text in the cells in the Grid change event handler (examples could be found on stackoverflow), which will allow it to be copied or manually handle the ctrl + c keypress and retrieve the content of the rows in a JavaScript variable.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Rob
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or