I am trying to export data from my grid to Excel.
For my button I am using the following code, as I don't have the buttons in a toolbar.
<span>
<button id="btnExport">Export to Excel</button>
<script> $("#btnExport").kendoButton({
click: function() {
$("#grid").data("kendoGrid").saveAsExcel()
}
})</script>
</span>
and on the grid I have the following (truncated)
// Grid
grid = $("#grid").kendoGrid( {
excel:{
fileName: "PC Inventory All.xlsx",
filterable:true,
allPages:false
},
The error message that I receive is "uncaught Error: JSZip not found."
I have included this file, or at least I thought that I have. I am running Xpages (JSP in essence) and my theme includes the following resources:
<resource>
<content-type>application/x-javascript</content-type>
<href>/.ibmxspres/domino/KendoUI/js/jquery.min.js</href>
</resource>
<resource>
<content-type>application/x-javascript</content-type>
<href>/.ibmxspres/domino/KendoUI/js/jszip.min.js</href>
</resource>
<resource>
<content-type>application/x-javascript</content-type>
<href>/.ibmxspres/domino/KendoUI/js/kendo.all.min.js</href>
</resource>
<resource>
<content-type>text/css</content-type>
<href>/.ibmxspres/domino/KendoUI/styles/kendo.common.min.css</href>
</resource>
<resource>
<content-type>text/css</content-type>
<href>/.ibmxspres/domino/KendoUI/styles/kendo.blueopal.min.css</href>
</resource>
I see all of these resources in the Sources tab of Chrome Dev tools, but I also see several multiple defines - one of which seems to be doing something with a dojo library.
I am at a loss, any help would be much appreciated.