0
votes

I need to send scheduled mails to my user. In this mail I need to show charts ( preferably Kendo Chart ). I have the data but have no idea about generating attachment of graph on fly on server side. How can I achieve this.

I created a sample html page with kendo chart. tried converting this html screen to pdf using online tool. But Kendo takes longer to render chart. And therefore this results in a blank page.

1

1 Answers

-1
votes

You can use saveAsPDF or excelExport functions:

$("#grid").data("kendoGrid").saveAsPDF();

or

$('#grid').getKendoGrid().saveAsExcel();

you can also add the function to your grid definition:

excelExport: function (e) {
        e.workbook.fileName = "Grid.xlsx";
    },

Here is how to export to a server path

Hope it helps