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

Copy of Cell

4 Answers 329 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rashmi
Top achievements
Rank 1
Veteran
Rashmi asked on 08 Aug 2020, 09:22 AM

Hi Team,

Copy of cell is not working from context menu in Kendo React. 

Thanks.

4 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 10 Aug 2020, 09:30 AM

Hello, Rashmi,

I tested this is our demo and I was able to copy the text of the Grid cell.

Could you please share the steps to copy the cell and is possible an example reproducing the issue?

Regards,
Stefan
Progress Telerik

0
Rashmi
Top achievements
Rank 1
Veteran
answered on 11 Aug 2020, 10:19 AM

Hi Stefan,

Thanks.

I had referred this example to make copy in context menu. 

https://www.telerik.com/kendo-react-ui/components/grid/advanced-features/context-menu/

On copy i need the cell copy but as of now i getting complete row copy. 

0
Stefan
Telerik team
answered on 12 Aug 2020, 11:29 AM

Hello, Rashmi,

I assume that the issue occurs because the example is made to use the row data instead of a single cell data.

A possible way will be to get the content of the target element based on where the context menu is opened and programmatically set the value to the clipboard:

https://stackblitz.com/edit/react-xhmatr?file=app/main.jsx (test in full screen as the iframe of stackblitz is preventing the clipboard operation.)

If the issue still occurs, please share an example of it and I will be happy to assist further.

Regards,
Stefan
Progress Telerik

0
Rashmi
Top achievements
Rank 1
Veteran
answered on 14 Aug 2020, 07:24 AM

Hi,

Thanks Stefan it worked.

Thanks

Tags
General Discussions
Asked by
Rashmi
Top achievements
Rank 1
Veteran
Answers by
Stefan
Telerik team
Rashmi
Top achievements
Rank 1
Veteran
Share this question
or