If I have a table and convert it over to a kendogrid, are you then able to export that to excel? When I try, I get saveAsExcel not defined. I even get it when I run one of the examples from the site in Dojo.
1 Answer, 1 is accepted
0
Ivan Danchev
Telerik team
answered on 20 Nov 2019, 04:41 PM
Hello George,
Here's a dojo example that uses the code from one of our Grid demos (Popup editing) and has a button added on top of the Grid that triggers the export:
$("#export").click(function(e) {
var grid = $("#grid").data("kendoGrid");
grid.saveAsExcel();
});
Note that the jszip script is added to the head tag:
As mentioned in the Grid's Excel Export documentation, it is required for the export to work.
Regards,
Ivan Danchev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.