Nested AjaxPanels & Repeaters problems

2 posts, 0 answers
  1. Petar
    Petar avatar
    1 posts
    Member since:
    Feb 2015

    Posted 15 Mar Link to this post

    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>

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 18 Mar Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top