This is a migrated thread and some comments may be shown as answers.

[Solved] onRequestStart and LoadingPanel Problem

2 Answers 156 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Fabian Raul Jofre
Top achievements
Rank 2
Fabian Raul Jofre asked on 13 Nov 2009, 01:17 PM

Hello Telerik Team!!

I have a little problem with the Loading Panel, onRequestStart and Export
I hace a RadGrid with a new choice of Export. (That“s really good!!) Excelent Work.

 

<

 

CommandItemSettings AddNewRecordText="" ShowExportToExcelButton="true" ShowExportToCsvButton="true" ShowExportToWordButton="true" />

I used the example that you showed in RadControls for ASP.NET AJAX Q3 2009 Live Examples.

 

function

 

onRequestStart(sender, args) {

 

    //window.document.getElementById(

'ctl00_Contenedor_RadAjaxLoadingPanel1').style.display = 'none';

 

 

    if (args.get_eventTarget().indexOf("ExportTo") != -1)

 

        args.set_enableAjax(

false);

 

 

}



The Problems is: for Example when I click over the image of Excel  the RadAjaxLoadingPanel never dissapear.
I tried with this line window.document.getElementById('ctl00_Contenedor_RadAjaxLoadingPanel1').style.display = 'none';
but i couldn“t.

Please if you can help me.
I will really appreciate it.

2 Answers, 1 is accepted

Sort by
0
Fabian Raul Jofre
Top achievements
Rank 2
answered on 13 Nov 2009, 01:31 PM
I founded a solution...
I shared with you.

function

 

onRequestStart(sender, args) {

 

 

 

if (args.get_eventTarget().indexOf("ExportTo") != -1) {

 

args.set_enableAjax(

 

false);

 

window.document.getElementById(

 

'<%=RadAjaxLoadingPanel1.ClientID%>').style.visibility = 'hidden';

 

}

 

 

else

 

 

window.document.getElementById(

'<%=RadAjaxLoadingPanel1.ClientID%>').style.visibility = '';

 

}

 




Thank“s anyway!
Have a nice weekend!!
0
Pavlina
Telerik team
answered on 13 Nov 2009, 03:42 PM
Hello Fabian,

I am glad that you discovered a solution for your case - thank you for sharing it in this public forum thread. Thus you can help other people who are searching similar implementation.
Please do not hesitate to contact us if any issues arise.

Best wishes,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
Fabian Raul Jofre
Top achievements
Rank 2
Answers by
Fabian Raul Jofre
Top achievements
Rank 2
Pavlina
Telerik team
Share this question
or