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

UpdatePanel in Radgrid

1 Answer 333 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Princia
Top achievements
Rank 1
Princia asked on 03 Oct 2011, 05:34 AM
Hi All,

 I have created a radgrid .Rows inside the radgrid will depend on the selection made in the RadCombobox.So I have placed both Radgrid and  RadCombobox inside the Updateapnel ,because I don't want any postback.But the problems is whenever I change the items in Radcombobox I get Scripting error like "Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'grdCustomerSuppliedRequirementsPanel'. If it is being updated dynamically then it must be inside another UpdatePanel".can you please tell me the solution for this.

Thanks in Advance
Princia D

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 03 Oct 2011, 06:02 AM
Hi Princia,

The exception you are getting is often caused when an updated control or its parent container is not rendered. For example, if you have an AJAX setting in your RadAjaxManager specifying a panel controls (say Panel1) is updated by a button control (say Button1). The AJAX setting would look like:
aspx:
<telerik:RadAjaxManager>
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Button1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Panel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
In the above scenario, you can get this exception if a parent container control of Panel1 is not rendered (with Visible=false). RadAjaxManager creates UpdatePanel controls dynamically around each updated control in its AJAX settings. These update panels are registered with the ScriptManager on the page. If they are not rendered, the client-side AJAX framework is unable to find them by the specified ID. You get this error.

Thanks,
Princy.
Tags
General Discussions
Asked by
Princia
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or