Trigger paste event

1 Answer 15 Views
Spreadsheet
Brian
Top achievements
Rank 1
Iron
Brian asked on 23 Feb 2022, 09:50 AM

Hi,

Is there a way to trigger a paste event when on click from the custom context menu? I am having different option to allow pasting based on the selection. But I will need to trigger the paste function not sure whether can i do it. Currently, my idea is to have the following option:

- Paste with format

- paste without format

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 28 Feb 2022, 09:36 AM

Hello, Brian,

Every event of the Spreadsheet can be manually triggered using the code below:

var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
spreadsheet.trigger("paste");

Let me know if that would be helpful.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Spreadsheet
Asked by
Brian
Top achievements
Rank 1
Iron
Answers by
Martin
Telerik team
Share this question
or