Hi,
I am using Rad window which i am navigating other .aspx page on button click. There is a save functionality in the window, after closing. Calling this function in RadWindowManager.
function closeRadWindow() {
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();
}
the grids will be rebind. Working good with this code which mentioned below.
Issue : grd1 and grd2 will be in one panel1 and grd3 is in another panel2. Condition is when Panel1 only visible (Panel2 is visible false ) then getting error :
Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_cphContent_ctl00_cphContent_wizPageInfo_grd3Panel'. If it is being updated dynamically then it must be inside another UpdatePanel.
Here is my code which i am using:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="grd1" UpdatePanelRenderMode="Inline" />
<telerik:AjaxUpdatedControl ControlID="grd2" UpdatePanelRenderMode="Inline" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="grd3" UpdatePanelRenderMode="Inline" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
Code Behind:
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
grd1.Rebind();
grd2.Rebind();
grd3.Rebind();
}
I am using Rad window which i am navigating other .aspx page on button click. There is a save functionality in the window, after closing. Calling this function in RadWindowManager.
function closeRadWindow() {
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();
}
the grids will be rebind. Working good with this code which mentioned below.
Issue : grd1 and grd2 will be in one panel1 and grd3 is in another panel2. Condition is when Panel1 only visible (Panel2 is visible false ) then getting error :
Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_cphContent_ctl00_cphContent_wizPageInfo_grd3Panel'. If it is being updated dynamically then it must be inside another UpdatePanel.
Here is my code which i am using:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="grd1" UpdatePanelRenderMode="Inline" />
<telerik:AjaxUpdatedControl ControlID="grd2" UpdatePanelRenderMode="Inline" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="grd3" UpdatePanelRenderMode="Inline" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
Code Behind:
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
grd1.Rebind();
grd2.Rebind();
grd3.Rebind();
}