Radio button list not firing post back

2 posts, 0 answers
  1. Pratik
    Pratik avatar
    2 posts
    Member since:
    Jan 2011

    Posted 01 Mar 2011 Link to this post


    we have page on which i have radio button list with Autopost = true when page load for the first time it works fine
    but when i move from Page 1 to Page 2 And come back to page 1 with some query string when click on radio button list it does not post back

    Plz See Code below

     <div id="divshippmethod" class="PageSection full ShippingInformation" runat="server">
                Shipping Method</h1>
            <div class="content">
                <asp:RadioButtonList CellSpacing="0" CellPadding="0" ID="rbtnShippingMethod" RepeatDirection="Horizontal"
                    AutoPostBack="true" runat="server">
                    <asp:ListItem Text="&nbsp;&nbsp;Shipping Information" Value="0" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mail List Upload"

    Rajax setting are below
     <telerik:AjaxSetting AjaxControlID="rbtnShippingMethod">
                            <telerik:AjaxUpdatedControl ControlID="rbtnShippingMethod" LoadingPanelID="RadAjaxLoadingPanel" />
                            <telerik:AjaxUpdatedControl ControlID="pnlShipping" />
                            <telerik:AjaxUpdatedControl ControlID="pnlMailListUpload" />

    Protected Sub rbtnShippingMethod_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rbtnShippingMethod.SelectedIndexChanged
            If rbtnShippingMethod.SelectedValue = 1 Then
                pnlShipping.Visible = False
                pnlMailListUpload.Visible = True
                pnlShipping.Visible = True
                pnlMailListUpload.Visible = False
            End If
        End Sub
    first time when pnlMailListUpload. is true, it has a button which Response.Redirects to another page on which i do some activity and come back to this page again.

    now if i select any item from the radiobuttonlist then rbtnShippingMethod_SelectedIndexChanged is not firing , on doing inspectElement from FF we found that the required postback JS (__dopostbakc) is not attached with the onclick event of the radio button.

    plz help.

  2. Kiara
    Kiara avatar
    309 posts
    Member since:
    Jul 2006

    Posted 04 Mar 2011 Link to this post

    The configurator on this telerik demo has radiobutton list and works without issues. Can it be that the panels (pnlShipping, pnlMailListUpload) wrap the radiobutton list and changing their visibility causes the abnormality? Have in mind what you should know when show/hide controls on ajax requests from this sample:

Back to Top