This is a migrated thread and some comments may be shown as answers.
RadAjaxLoadingPanel
3 Answers 36 Views
This is a migrated thread and some comments may be shown as answers.
Shamim
Top achievements
Rank 1
Shamim asked on 02 Sep 2010, 04:15 PM
I have a radajaxloading panel as followed:

 

<td runat="server" style="padding-bottom:15px; width:40px;">

 

 

 

<asp:Panel ID="pnlHolder" runat="server" Visible="true" ></asp:Panel>

 

 

 

 

<telerik:RadAjaxLoadingPanel id="LoadingPanel1" runat="server" Width="30px"

 

 

Height="30px" IsSticky="false" >

 

 

 

<asp:Image id="Image2" runat="server" ImageUrl="~/Image/ajax-loader.gif" />

 

 

 

</telerik:RadAjaxLoadingPanel>

 

 

 

</td>

 


I have a click event that fires a javascript as followed based on a click event:

<

 

script type="text/javascript" language="javascript">

 

 

var currentLoadingPanel = null;

 

 

var currentUpdatedControl = null;

 

 

 

function AjaxRequestStart() {

 

 

 

if (document.getElementById("<%= hdnAvailabilityChecker.ClientID %>").value == 1) {

 

 

return;

 

}

 

 

if (document.getElementById("<%= TextBox7.ClientID %>").value == "") {

 

 

return;

 

}

 

 

document.getElementById(

"<%= TextBox7.ClientID %>").value = document.getElementById("<%= TextBox7.ClientID %>").value.toUpperCase();

 

 

currentLoadingPanel = $find(

"<%= LoadingPanel1.ClientID %>");

 

 

currentUpdatedControl =

"<%=pnlHolder.ClientID %>";

 

 

currentLoadingPanel.show(currentUpdatedControl);

 

var t = setTimeout("AjaxResponseEnd()", 2000);

 

}

 

 

function AjaxResponseEnd() {

 

 

if (currentLoadingPanel != null) {

 

currentLoadingPanel.hide(currentUpdatedControl);

document.getElementById(

"<%= hdnAvailabilityChecker.ClientID %>").value = 1;

 

 

}

 

 

}


The script works fine when we click the button for the first time. But on the second click it throws the following message:

Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_ctl00_MainContent_pnlHolderPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.

Any help on this will be appreciated. Thanks.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 03 Sep 2010, 08:05 AM
Hi Shamim,

Could you please confirm that pnlHolder is always visible or somewhere  you change its visibility. If so I suggest that you wrap pnlHolder in another panel which is always visible. This should eliminate the error.

Kind regards,
Pavlina
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
Shamim
Top achievements
Rank 1
answered on 03 Sep 2010, 03:05 PM
Please take a look at the code. The visibility property is already set to true.
0
Pavlina
Telerik team
answered on 03 Sep 2010, 04:34 PM
Hello Shamim,

Can you share a piece of runnable code which illustrates the issue you are facing? We will thus be able to further investigate it.

All the best,
Pavlina
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
Tags
Ajax
Asked by
Shamim
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Shamim
Top achievements
Rank 1
Share this question
or