I have a problem getting this right.
This is the code i've seen in many threads.
The problem here is if i let this stay as it's is, the loading panel just stucks there (the circle does not move, it's "frozen") and after a while pop-ups the prompt open/save excel file. But even after the popup the loading panel doesn't disappear....
If i remove this bit:
The loading panel works great, but instead of being prompt to open/save the file, the contents of the table that is created is loaded/pasted in the grid itself....
Thanks in advance for all the help
function
requestStart(sender, args) {
currentLoadingPanel = $find(
"<%= RadAjaxLoadingPanel1.ClientID %>"
);
//debugger;
if
(args.get_eventTarget().indexOf(
"grdTekGrid"
) >= 0) {
currentUpdatedControl =
"<%= grdTekGrid.ClientID %>"
;
}
if
(args.EventTarget.indexOf(
"ExportToExcelButton"
) >= 0) {
args.EnableAjax =
false
;
}
//show the loading panel over the updated control
currentLoadingPanel.show(currentUpdatedControl);
}
function
ResponseEnd() {
//debugger;
//hide the loading panel and clean up the global variables
if
(currentLoadingPanel !=
null
)
currentLoadingPanel.hide(currentUpdatedControl);
currentUpdatedControl =
null
;
currentLoadingPanel =
null
;
}
This is the code i've seen in many threads.
The problem here is if i let this stay as it's is, the loading panel just stucks there (the circle does not move, it's "frozen") and after a while pop-ups the prompt open/save excel file. But even after the popup the loading panel doesn't disappear....
If i remove this bit:
if
(args.EventTarget.indexOf(
"ExportToExcelButton"
) >= 0) {
args.EnableAjax =
false
;
}
The loading panel works great, but instead of being prompt to open/save the file, the contents of the table that is created is loaded/pasted in the grid itself....
Thanks in advance for all the help