Hi Viktor,
Thanks for answering, I tried but it didn't work for me, the reason is that the excelExport event fire after the requestEnd and if I trying to bind my loading function from another side, on additional code, the grid reset when I hide a column. Please take a look at my code on the excelExport below.
excelExport:
function
(e) {
kendo.ui.progress(
this
.element,
true
);
var
sheet = e.workbook.sheets[0];
for
(
var
i = 0; i < sheet.rows.length; i++) {
for
(
var
ci = 0; ci < sheet.rows[i].cells.length; ci++) {
sheet.rows[0].cells[ci].background =
"#4472C4"
;
sheet.rows[i].cells[ci].hAlign =
"left"
;
}
//Data Source
var
datas =
new
kendo.data.DataSource();
datas = {
requestEnd:
function
(){
var
grid = $(
"#grid"
).getKendoGrid();
setTimeout(
function
() {
kendo.ui.progress(grid.element,
false
);
});
},
type:
"webapi"
,
transport: {
read: {
url:
"/apiAsap/search/getClientDetail"
,
dataType:
'json'
,
data: {
accountId: accountId
},
headers: {
'auth'
: $sessionStorage.a_jwt
}
}
},