This is a migrated thread and some comments may be shown as answers.

Error returned by JSZip when exporting to Excel

7 Answers 1161 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 17 Aug 2016, 03:52 PM

I'm getting the following console error when trying to manually export a grid to Excel:

"Uncaught Error: This method has been removed in JSZip 3.0, please check the upgrade guide."

Code to trigger export:

  function exportGrid() {
        var grid = $("#coingrid").data("kendoGrid");
        grid.saveAsExcel();
  }

Should I revert to a 2.x version of JSZip, is there a work-around, or am I doing something wrong (most probable answer)? I'm using 2016.2 release of UI. Thanks.

7 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 18 Aug 2016, 08:37 AM

Hello David,

Currently we are supporting Jszip version 2.6 and we are relying on the mentioned generate method. There is no workaround, that we could suggest, because indeed the method has been deprecated in version 3.0, so at the moment I would recommend to keep version 2.6.

Regards,
Dimiter Madjarov
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Jim
Top achievements
Rank 1
answered on 16 Jan 2017, 05:48 PM

Hello,

Is there any documentation on the version of jszip that has been distributed with each version of UI for ASP.NET MVC or is it always 2.6? 

I'm looking at kendo\2016.3.1118\jszip.min.js and I cannot figure out which version of jszip this file is.

Thanks,

Jim

0
Dimiter Madjarov
Telerik team
answered on 17 Jan 2017, 09:34 AM

Hello Jim,

Currently we don't have this information documented, so I will log this task for the documentation team.

Regarding the version, all releases since mid 2016 use Jszip 2.6.

Regards,
Dimiter Madjarov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 23 Mar 2017, 04:55 AM

Hello Dimiter

do you plan to support JSZip 3+ ?

/Morten

0
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 23 Mar 2017, 04:59 AM
according to http://stuk.github.io/jszip/documentation/upgrade_guide.html the changes between v2 and v3 are smallish :-)
0
Dimiter Topalov
Telerik team
answered on 23 Mar 2017, 09:12 AM
Hi Morten,

We have a logged issue in our GitHub repository on this subject:

https://github.com/telerik/kendo-ui-core/issues/2316

Any updates regarding introducing support for JsZip v. 3+ will be posted there, however I can share that providing such support is not in our immediate plans, as it will cause breaking changes in our excel export functionality.

Regards,
Dimiter Topalov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 23 Mar 2017, 08:02 PM
Thanks Dimiter 
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Jim
Top achievements
Rank 1
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Dimiter Topalov
Telerik team
Share this question
or