Pasting copied row programatically

How to paste a copied row to a specific row programmatically in Angular? Here’s what I have so far:

1.) Copy the row programmatically by:
1.a) Selecting the rows to be copied using hot.selectRows()
1.b) Copying using CopyPaste.copy()
2.) Select the cell where the copied data should be pasted using hot.selectCell
3.) Actually pasting the data ----> I can’t make it

Can you please show an example?

Thanks!

Hi @eabardies

Would it be possible to you to show us your current implementation in a code demo?

Hi @adrian.szymanski,

Here are the lines of code:

Do you have an example to do the paste part?

Hey @eabardies

as specified in the documentation at Clipboard - JavaScript Data Grid | Handsontable we are not allowed to read from the clipboard

59

read more ref: Clipboard API and events

Hi @aleksandra_budnik,

Thank you for your response. Maybe I’ll have to use setDataAtCell then. :smiley: