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
>