Hello, I have a problem with a usercontrol as editform in a radgrid. In the usercontrol is a checkbox and a combobox. The combobox is made visible as the checkbox gets checked. This works fine without "Ajaxifing" the control (so full pageback is posted). I'm trying to get the checkbox and the combobox in a updatepanel, but then I get the following error: Jscript runtime error: (...) could not find UpdatePanel with ID 'Radgrid1.(..)..UpdatePanel1. If it is being updated dynamically then it must be inside another UpdatePanel
This is de usercontrol
And some snapshots from the aspx file
What should be done to get to UpdatePanel work in the Usercontrol?
Regards,
-Ruud Feringa
This is de usercontrol
<%@ Control Language="VB" AutoEventWireup="true" CodeFile="GridEdit4.vb" Inherits="GridEdit4" %> |
<asp:UpdatePanel ID="UpdatePanel1" runat="server" > |
<ContentTemplate> |
<asp:panel runat="server" ID="pUpdate"> |
<asp:CheckBox runat="server" id="chkUpdate" OnCheckedChanged="updateCombobox" AutoPostBack="true" /> |
<asp:Label runat="server" ID="lbUpdate" Text="Update test" /> |
<telerik:radcombobox runat="server" ID="cmbUpdate" Visible="false" ></telerik:radcombobox> |
</asp:panel> |
</ContentTemplate> |
</asp:UpdatePanel> |
( |
And some snapshots from the aspx file
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePartialRendering="true" > |
<Scripts> |
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> |
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> |
</Scripts> |
</telerik:RadScriptManager> |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true" > |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="FormatieRadgrid"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="FormatieRadgrid" LoadingPanelID="RadAjaxLoadingPanel1" /> |
<telerik:AjaxUpdatedControl ControlID="GridEdit4" LoadingPanelID="UpdatePanel1" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> |
<!-- This is a snapshot from the Radgrid: --> |
</Columns> |
<EditFormSettings UserControlName="GridEdit4.ascx" EditFormType="WebUserControl"> |
<EditColumn UniqueName="EditCommandColumn1"></EditColumn> |
</EditFormSettings> |
</telerik:GridTableView> |
</DetailTables> |
What should be done to get to UpdatePanel work in the Usercontrol?
Regards,
-Ruud Feringa