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

Sys.InvalidOperationException: A control is already associated with the element

5 Answers 231 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
atul
Top achievements
Rank 1
atul asked on 06 Aug 2008, 04:33 AM
Hi

I am using Radgrid,radwindow controls,when i am using paging,sorting or filtering the following error comes in status bar

Sys.InvalidOperationException: A control is already associated with the element.

How i can remove this and what is the cause of this error?

Thanks
Atul

5 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 08 Aug 2008, 08:07 AM
Hello atul,

This is a general MS AJAX error which is widely discussed on the web as you can see from the search results. If you cannot find what is causing the error in you case reviewing the related discussions, we will definitely need more information about your scenario to be able to help you further.

Regards,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Michael
Top achievements
Rank 1
answered on 10 Sep 2008, 03:32 PM
I am receiving the same error message.
It only happens in IE.
Has anyone solved this issue? If so, how did you solve it?

Michael
0
Daniel
Telerik team
answered on 10 Sep 2008, 04:46 PM
Hello Michael,

Could you please try the solution suggested here:
A control is already associated with the element

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Randy
Top achievements
Rank 1
answered on 29 Sep 2008, 05:25 PM
I need some validation on this topic.  I ran my application and recieved no errors.  My application consist of the following:

MasterPage
-- ContentPage
----  RadAjaxManagerProxy
----  RadAjaxLoadingPanel
----  RadAjaxPanel
------  RadPanelBar
--------  During the onitemdatabound event I add a WebUserControl that I created which displays each record.
--------  Inside my WebUserControl I added an ASP.NET button control.

As soon as I added this ASP.NEt button control i recieved the following error:

Sys.InvalidOperationException: A control is already associated with the element.

My question is, am I designing my app incorrectly,  is the Telerik Ajax un-aware that my button is on each WebUserControl that is added to each item in the RadAjaxPanel?  What do I need to do to move beyond this error?  If you need my code, let me know.
0
Pavel
Telerik team
answered on 02 Oct 2008, 07:11 AM
Hi Randy,

Generally it is not recommended to use both RadAjaxManager and RadAjaxPanel at the same time. Doing so might lead to errors and unexpected behavior. You can read more about this here. Can you try using only one of the controls to ajaxify the page and see if that helps resolve the issue?

Kind regards,
Pavel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
atul
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Michael
Top achievements
Rank 1
Daniel
Telerik team
Randy
Top achievements
Rank 1
Pavel
Telerik team
Share this question
or