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

[Solved] What needs to be included in a custom script to export to Excel?

2 Answers 220 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 20 Nov 2014, 03:02 PM
I used the Telerik "Kendo UI Custom Download" to create a custom script. I included all the grid components other than Editing. When I attempt to export the grid to Excel, I get the following error:

0x800a138f - JavaScript runtime error: Unable to get property 'Workbook' of undefined or null reference

at the following code:

var i=new e.ooxml.Workbook(t)

It works fine if I use the kendo.all.min.js file. What else do I need to include to get the Excel export to work?

Frank Wanicka

2 Answers, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 20 Nov 2014, 05:08 PM
Hello,

Thank you for reporting this issue. We're working on a fix, but this is the workaround for the moment.

Please include kendo.ooxml before kendo.excel and, I know its strange, kendo.treelist.min.js at the end:
<script src="http://cdn.kendostatic.com/2014.3.1119/js/kendo.ooxml.min.js"></script>
<script src="http://cdn.kendostatic.com/2014.3.1119/js/kendo.excel.min.js"></script>
...
<script src="http://cdn.kendostatic.com/2014.3.1119/js/kendo.treelist.min.js"></script>

Apologies for the caused inconvenience.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Frank
Top achievements
Rank 1
answered on 20 Nov 2014, 06:01 PM
Thanks for the quick response.
Tags
Grid
Asked by
Frank
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Frank
Top achievements
Rank 1
Share this question
or