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

Nested AjaxPanels & Repeaters problems

1 Answer 55 Views
AjaxPanel
This is a migrated thread and some comments may be shown as answers.
Petar
Top achievements
Rank 1
Petar asked on 15 Mar 2016, 02:50 PM

I have this setup in witch i dynamically add controls. I have tried to put AjaxManagerProxy but it didn't work.

Sys.WebForms.PageRequestManagerServerErrorException: Script control 'PnlItems' is not a registered script control. 
Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl

<%--Main page--%>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
    <asp:Repeater ID="RptItems" runat="server">
        <ItemTemplate>
            <cs:customitem id="CustomItem1" runat="server" />
        </ItemTemplate>
    </asp:Repeater>
    <asp:Button ID="BtnAddItem" runat="server" OnClick="BtnAddItem_OnClick" />
</telerik:RadAjaxPanel>

 <%--Custom control--%>
<telerik:RadAjaxPanel ID="PnlItems" runat="server">
    <asp:Repeater ID="RptItems" runat="server">
        <ItemTemplate>
            <asp:TextBox ID="TxtName" runat="server" />
        </ItemTemplate>
    </asp:Repeater>
    <asp:Button ID="BtnAddItem" runat="server" OnClick="BtnAddItem_OnClick" />
</telerik:RadAjaxPanel>

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 18 Mar 2016, 12:04 PM
Hello,

Please try to replace the RadAjaxPanel controls with regular asp UpdatePanels and see how it goes on this case.

Regards,
Maria Ilieva
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
AjaxPanel
Asked by
Petar
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or