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

LoadingPanel is not giving an error message (Microsoft JScript runtime error: Sys.InvalidOperationException: A Control in already associated with the element)

3 Answers 72 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Fouad Kayali
Top achievements
Rank 1
Fouad Kayali asked on 24 May 2010, 11:10 AM
Hi all,

I am using RadAjaxLoadingPanel and RadAjaxPanel with a Button which takes long time processing (Communicating with external machine), this is the code.

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server">
      <img alt="Loading..." src="loading.gif">
</telerik:RadAjaxLoadingPanel>

<telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanel="RadAjaxLoadingPanel1">
      <asp:Button ID="btn" runat="server" OnClick="btnClick" Text="Clieck here" />
</telerik:RadAjaxPanel>

protected void btnClick(object sender, EventArgs e)
{
      Foo() // function takes long time
}

After pressing this button it shows me this error message
Microsoft JScript runtime error: Sys.InvalidOperationException: A Control in already associated with the element

Is there anyway else to show loading image?????

another thing, that I tried to show loading with Gridview but it doesn't come. how to show loading with the GridView events???

Thank in advance

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 26 May 2010, 02:36 PM
Hi Fouad,

Could you please test the application by using regular asp Update Panel instead of radAjaxPanel?Also please elaborate a little bit more on the issue you are facing. Does the error appear if the RadAjaxLoadingPanel is removed from the page?


Kind regards,
Maria Ilieva
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
dlewis
Top achievements
Rank 1
answered on 05 Aug 2010, 02:46 AM
I've got the exact same problem and:

1.  I'm using the UpdatePanel
2.  The Error disappears when "RadAjaxLoadingPanel is removed from the page"

0
Maria Ilieva
Telerik team
answered on 09 Aug 2010, 12:38 PM
Hello,

Could you please open a regular support ticket and send us runnable application which demonstrates the error. We will test it locally and advise you further.


Sincerely yours,
Maria Ilieva
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
Fouad Kayali
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
dlewis
Top achievements
Rank 1
Share this question
or