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

RadAjaxManager inside UserControl gives error:already associated with the element

1 Answer 173 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
shootermv
Top achievements
Rank 1
shootermv asked on 03 Aug 2010, 09:55 AM

In my scenario i have the RadTreeView on the left and UCDetails on the right. each time some treenode been clicked i want the UCDetails to display the details of item that was clicked on a tree. UCDetails contains RadAjaxManager . At masterPage i put all the contents inside RadAjaxPanel.
code of UC:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCccc.ascx.cs" Inherits="MyWeb.UC.UCccc" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >              
        <AjaxSettings>   
            <telerik:AjaxSetting AjaxControlID="RadGrid1">   
                <UpdatedControls>   
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />   
                </UpdatedControls>   
            </telerik:AjaxSetting>   
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">   
                <UpdatedControls>   
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />   
                </UpdatedControls>   
            </telerik:AjaxSetting>   
        </AjaxSettings>   
    </telerik:RadAjaxManager>
toto:<asp:CheckBox ID="RadGrid1" runat="server" />

When page loaded for first time its OK. But after clicking treenode i get error:
Microsoft JScript runtime error: Sys.InvalidOperationException: A control is already associated with the element.

Please Help
thanks forward

1 Answer, 1 is accepted

Sort by
0
shootermv
Top achievements
Rank 1
answered on 03 Aug 2010, 12:58 PM
Tanks, i've solved the issue by replacing asp:scriptmanager by RadScriptManager
Tags
Ajax
Asked by
shootermv
Top achievements
Rank 1
Answers by
shootermv
Top achievements
Rank 1
Share this question
or