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

radio button doesn't fire even with autopostback

4 Answers 179 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
appdev
Top achievements
Rank 1
appdev asked on 08 Jun 2011, 05:24 PM
<asp:RadioButton ID="rb_yes" runat="server" GroupName="test" Text="Yes" AutoPostBack="true" />
<asp:RadioButton ID="rb_no" runat="server" GroupName="test" Text="No" AutoPostBack="true" />

the above works fine and it does go into the
checkedchanged function.

however, when i put
<telerik:radajaxmanager id="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline" >  
            <ClientEvents OnRequestStart="RequestStart" />
            <AjaxSettings>
                 <telerik:AjaxSetting AjaxControlID="rb_yes">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="pnl_Test" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="txt_imageurl" />
                        <telerik:AjaxUpdatedControl ControlID="txt_imagename" />
                        <telerik:AjaxUpdatedControl ControlID="btn_uploadImage" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
</telerik:radajaxmanager>

the postback doesn't fire. any ideas?

4 Answers, 1 is accepted

Sort by
0
Genti
Telerik team
answered on 09 Jun 2011, 09:41 AM
Hi Duy,

Thank you for contacting us.

I do not know what your intention is.
However if you want the the checkedchanged() to be called using Ajax, you should add another setting to the Ajax manager settings, allowing the radiobutton to update itself.
I.e
<telerik:AjaxSetting AjaxControlID="rb_yes">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="rb_yes" LoadingPanelID="RadAjaxLoadingPanel1" />
    </UpdatedControls>
</telerik:AjaxSetting>

Hope this helps.

Greetings,
Genti
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
appdev
Top achievements
Rank 1
answered on 24 Oct 2011, 02:32 PM
this still doesn't work by the way, the radio button still doesn't postback at all
0
Iana Tsolova
Telerik team
answered on 25 Oct 2011, 12:30 PM
Hi Duy,

Can you confirm that no javascript errors are thrown on the page?
I tried replicating the described behavior but to no avail. Check the attached sample.

Best wishes,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Adam
Top achievements
Rank 1
answered on 15 Mar 2013, 09:10 PM
I think I have a similar situation which has been puzzling me all day...

I have some radio buttons on an edit form (user control) and I want to make them post back on checked changed.  This works great when the form is in insert mode (clicked Add button from the grid) but not in edit mode.  I used Visual Event to inspect the radio buttons and the JavaScript to do the postback is never attached when the form is in edit mode, only insert mode,

Any insight is appreciated!
Tags
Ajax
Asked by
appdev
Top achievements
Rank 1
Answers by
Genti
Telerik team
appdev
Top achievements
Rank 1
Iana Tsolova
Telerik team
Adam
Top achievements
Rank 1
Share this question
or