Calling an update panel from another

2 posts, 0 answers
  1. Debashis Pyne
    Debashis Pyne avatar
    66 posts
    Member since:
    Apr 2010

    Posted 09 Aug 2010 Link to this post


    I have 2 panels in an aspx page.
    Panel1 - has 1 radiobuttonlist with Yes and No as options
    Panel 2 - has 2 textboxes.

    I want when Yes from radiobuttonlist is selected - the panel 2 to be displayed and the same to be hdden with No is selected.

    The following the code i am using in aspx page:

    <telerik:RadAjaxManager ID="RadAjaxManager2" runat="server">
          <telerik:AjaxSetting AjaxControlID="pnlRadioButtons">
              <telerik:AjaxUpdatedControl ControlID="pnlRadioButtons" />
          <telerik:AjaxSetting AjaxControlID="pnlMiddleData">
              <telerik:AjaxUpdatedControl ControlID="pnlMiddleData" />

    The following is the C# code:

    protected void RadBtnSystemUser_SelectedIndexChanged(object sender, EventArgs e)
            if (RadBtnSystemUser.SelectedValue.ToString() == "1")
                pnlMiddleData.Visible = true;
                reqFldUserId.Enabled = true;
                pnlMiddleData.Visible = false;
                reqFldUserId.Enabled = false;

    This throws an error saying that since are in 2 seperate update panels an error occured.

    Is this possible?
    Please help.

  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 10 Aug 2010 Link to this post


    Could you please elaborate a bit more in your scenario? Are the controls pnlMiddleData and pnlRadioButtons RadAjaxPanela or asp UpdatePanela. Please note that you could not add RadAjaxPanels or asp UpdatePanels into the RadAjaxManager settings.

    Kind regards,
    Maria Ilieva
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top