Last Updated: 15 Apr 2019 09:49 by ADMIN
Created on: 08 Apr 2019 15:58
Category: Spreadsheet
Type: Bug Report
on excelExport event, I can not get the worksheet name defined in user form

We have: Uncaught Error: The toDataURL method can be used only with jsZip 2. Either include jsZip 2 or use the toDataURLAsync method.

and we have:

so i implement a function SpreadSheetOnexcelExport on excelExport event:

$.SpreadSheetOnexcelExport = function(){
var args = arguments[0];
var options = args.sender.options;
var wb = args.workbook;
var wbX = new kendo.ooxml.Workbook(wb)
var dataURL = wbX.toDataURLAsync();
wbX.toDataURLAsync().then(function(dataURL) {
  dataURI: dataURL,
  fileName: options.excel.fileName

The problem is that, for fileName, I have no way to use the file name, selected by the user:

1 comment
Veselin Tsvetanov
Posted on: 15 Apr 2019 09:49

We have already discussed the above in the support thread that you have opened on the same topic. In the described case you will need to take the custom file name directly from the SaveAs pop-up:
var nameInput = $('.k-spreadsheet-window input[data-bind="value: name"]');
var name = nameInput.val();

Here you will find a small sample implementing the above suggestion.

Veselin Tsvetanov
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.