toExcel - Callback or onXLE event - RESOLVED!

Hi,

when use toExcel in dhtmxlGrid, how to know which ended?

there is no event onXLE for toExcel or callback function?

Thanks

Greetings

Unfortunately the excel file generation ending cannot be controlled.

hi, thanks by reply.

i resolve my problem this way:

My js code:

myLayout.progressOn();
myGrid.toExcel(’/dhtmlxSuite_v5_pro/codebase/grid-excel-php/generate.php’, ‘full_color’,null,null,null,function(){

			window.open("/dhtmlxSuite_v5_pro/codebase/grid-excel-php/temp/excel.xlsx?e=" + new Date().getTime());
			myLayout.progressOff();
		});	

DHTMLX JS:

dhtmlXGridObject.prototype.toExcel = function (a, g, m, l, c,callback) {
if (!document.getElementById(“ifr”)) {
var h = document.createElement(“iframe”);
h.style.display = “none”;
h.setAttribute(“name”, “dhx_export_iframe”);
h.setAttribute(“src”, “”);
h.setAttribute(“id”, “dhx_export_iframe”);
document.body.appendChild(h);
document.getElementById(“dhx_export_iframe”).onload = function() {
if (typeof callback === “function”) {
callback();
}
}
}
var e = ’ target=“dhx_export_iframe”’;
this.toPDF(a, g, m, l, c, e,callback)
};

dhtmlXGridObject.prototype.toPDF = function (g, r, w, u, n, D,callback) {…}

This solution resolve my case.