I'm using radgrid. When I click the export button, the Rad Ajax Loading Panel shows up but never closes after the export process completes.
Do you have any idea about this problem?
I'm using radgrid. When I click the export button, the Rad Ajax Loading Panel shows up but never closes after the export process completes.
Do you have any idea about this problem?
Hi I've found my solution :) I've remove the connection between AjaxPanel and AjaxLoadingPanel. After than i trigged the AjaxLoadingPanel explicitly. Here is the code i used to.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadGrid1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1"/>
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="btnList">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1"/>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
<ClientEvents OnRequestStart="ResponseEnd" />
</telerik:RadAjaxManager>
And the java script
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
var currentLoadingPanel = null;
var currentUpdatedControl = null;
function ResponseEnd(sender, args) {
//hide the loading panel and clean up the global variables
if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0 ||
args.get_eventTarget().indexOf("ExportToPdfButton") >= 0 ||
args.get_eventTarget().indexOf("ExportToCsvButton") >= 0) {
args.set_enableAjax(false);
}
currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>");
if (args.get_eventTarget() == "<%= btnList.UniqueID %>") {
currentUpdatedControl = "<%= RadAjaxPanel1.ClientID %>";
}
else {
currentUpdatedControl = "<%= RadAjaxPanel1.ClientID %>";
}
if (currentLoadingPanel != null)
currentLoadingPanel.hide(currentUpdatedControl);
currentUpdatedControl = null;
currentLoadingPanel = null;
}
</script>