Hello
Is there a way to run a function after the export is complete?
For example:
function exportToExcel = function(callback=null){
grid.export.xlsx(url:URL,callback:callback);
}
Thanks
Hello
Is there a way to run a function after the export is complete?
For example:
function exportToExcel = function(callback=null){
grid.export.xlsx(url:URL,callback:callback);
}
Thanks
Currently there is no possibility to control the process of the export finishing.
I’ve sent your request to the dev team and it will be observed, so the probable solution may appear in one of the future updates.
I’ll inform you about any possible progress on this issue.
Hello @grodriguez,
The dev team updated export functions in the latest release, so now they return promises. You can find other changes by the following link:
So now they can be used in such way:
grid.export.pdf()
.then(() => console.log("success"))
.catch(() => console.log("failure"))
.finally(() => console.log("finished"));
Here is an example:
https://snippet.dhtmlx.com/tzef6l5s
Kind regards,