I've been using the below code snippet to save a filtered grid (with paging) to an Excel file with no issues. Once I upgraded I'm getting the above error "kendo.util.encodeBase64 is not a function"
01.
function
saveExcel(e) {
02.
e.preventDefault();
03.
var
dataUri =
"data:text/plain;base64,"
+ kendo.util.encodeBase64(JSON.stringify(e.data));
04.
kendo.saveAs({
05.
dataURI: dataUri,
06.
proxyURL:
"@Url.Action("
ExcelExport
", "
ControllerName
")"
,
07.
forceProxy:
true
08.
});
09.
}
Did this function go away or change? Is there a better way to save an Excel file that needs to pull more columns than that is on the grid, that is also filtered and has paging. Basically my MVC controller method does a data pull based on the filter of the grid.