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

RadajaxLoadingPanel show not working

2 Answers 152 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Lynne
Top achievements
Rank 1
Lynne asked on 27 Sep 2010, 11:50 PM
I try to show and hide the radAjaxLoadingPanel, but it is not working.  I don't know what is missing.  I have a loading panel:

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>

 

 

 

<telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="all"></telerik:RadFormDecorator>

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel>

 

 


 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="OnRequestStart" ClientEvents-OnResponseEnd="OnResponseEnd">

 


 

 

function OnRequestStart(sender, arguments) {

 

 

 

var currentLoadingPanel = window['<%=RadAjaxLoadingPanel1.ClientID %>'];

 

currentLoadingPanel.show(

 

'<%=PageForm.ClientID %>');

 

}

 

 

function OnResponseEnd(sender, arguments) {

 

 

 

var currentLoadingPanel = window['<%=RadAjaxLoadingPanel1.ClientID %>'];

 

currentLoadingPanel.hide(

 

'<%=PageForm.ClientID %>');

 

}


In IE I get an error that show won't work:
'Microsoft JScript runtime error: Object doesn't support this property or method'

In FF I get an error that  currentLoadingPanel is undefined.  Both have a problem at the line for currentLoadingPanel.show().

Others have this website in TFS and we have all downloaded the files, but mine is not working and other people seem to have no problem.
What am I missing?

This problem occurs when filtering or sorting a RadGrid.

Thanks!


2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 28 Sep 2010, 10:32 AM
Hello Lynne,

You should not use window[...] to obtain reference to a RadControls for ASP.NET AJAX client object - this was used with the old ASP.NET controls. Use $find(...) instead.

http://www.telerik.com/help/aspnet-ajax/ajxshowhideloadingpanel.html

Greetings,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Lynne
Top achievements
Rank 1
answered on 28 Sep 2010, 03:13 PM
That works!  Thanks.
Tags
Ajax
Asked by
Lynne
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Lynne
Top achievements
Rank 1
Share this question
or