Pasting copied row programatically

Tags: #<Tag:0x00007efc6c8f7f68>

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 https://handsontable.com/docs/javascript-data-grid/basic-clipboard/ we are not allowed to read from the clipboard

read more ref: https://www.w3.org/TR/clipboard-apis/#privacy

Hi @aleksandra_budnik,

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