Hello, I am getting this error while exporting the pivot grid.
drreport:1526 Uncaught ReferenceError: saveAs is not defined
at e.(anonymous function).(anonymous function).listener (
http://localhost:63220/report/drreport:1526:29)
at HTMLButtonElement.<anonymous> (pqgrid.min.js:13)
at HTMLButtonElement.dispatch (jquery.min.js:3)
at HTMLButtonElement.r.handle (jquery.min.js:3)
And My code is.
{
type: 'button',
label: "Export to Excel(xlsx)",
icon: 'ui-icon-document',
listener: function (evt) {
var str = this.exportExcel({ render: true });
saveAs(str, "pivot.xlsx");
}
},