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) {
kendo.saveAs({
dataURI: dataURL,
fileName: options.excel.fileName
});
});
args.preventDefault();
}
The problem is that, for fileName, I have no way to use the file name, selected by the user:
This is observed also in online demos:
Steps:
### Bug report
When the property "useCultureDecimals" is enabled in a culture where the decimal separator is the comma, the function Text() does not format numbers correctly.
### Reproduction of the problem
1. Set a culture where the decimal separator is the comma (i.e. "da-DK");
2. Create a Spreadsheet and enable the property "useCultureDecimals";
3. Enter a number with a decimal separator comma (i.e. "0,1141");
4. Format the cell by using the Text() function ( =TEXT(A1; "##0,00%") );
5. The number is not formatted properly - "011%"
A Dojo sample for reproduction: https://dojo.telerik.com/AsiLiKil/12
### Expected/desired behavior
"0,1141" should be formatted as "11,41%" as in Excel.
### Environment
* **Kendo UI version: 2021.3.914
* **jQuery version: 1.12.4
* **Browser: [all]
Bug in js\spreadsheet\numformat.js makeDateFormat
You appear to be using the wrong indices inside a nested loop.
if (/^(?:date|time|ampm)$/.test(section.body[i].type)) {
Should be (switch i to j)
if (/^(?:date|time|ampm)$/.test(section.body[j].type)) {
Getting error
Uncaught TypeError: Cannot read property 'type' of undefined
at Object.<anonymous> (numformat.js:630)
Note: Version is actually 2018.3.1114 from npm