Spreadsheet data import/export in Angular

0 Answers 24 Views
SPA Spreadsheet
kypdk
Top achievements
Rank 1
Iron
kypdk asked on 29 Jun 2022, 01:37 PM | edited on 29 Jun 2022, 01:50 PM

hello,

I want to access the spreadshet object in Angular, export and import data.

Example

(A completely imaginary example. I don't know how.)

 dataExport() {
    kendo.jQuery(this.spreadsheetEl.nativeElement).kendoSpreadsheet({
        function() {
            var sheet = $("#spreadsheet").data('kendoSpreadsheet').activeSheet();
            var range = sheet.selection();
            console.log(sheet.toJSON());
        }
    });
  }


how can I do it ?

thanks in advance

kypdk
Top achievements
Rank 1
Iron
commented on 29 Jun 2022, 02:51 PM | edited

for Angular

    var spreadsheet = kendo.jQuery(this.spreadsheetEl.nativeElement).data("kendoSpreadsheet");
    var sheet = spreadsheet.activeSheet();
    sheet.toJSON();

No answers yet. Maybe you can help?

Tags
SPA Spreadsheet
Asked by
kypdk
Top achievements
Rank 1
Iron
Share this question
or