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

Radajaxmanager fails when updating asp:panel set to visible=false

1 Answer 53 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Geoff
Top achievements
Rank 1
Geoff asked on 23 Oct 2014, 03:21 PM
I have a radiobuttonlist that contains a value that when selected, opens a hidden asp:panel and hides the current.


<asp:RadioButtonList ID="ShippingAddressRadioButtonList" runat="server" AutoPostBack="true" OnClick="CheckoutButtonDisable()">
</asp:RadioButtonList>

Selected value on server side sets visible = true for said panel

<asp:Panel ID="AddNewShippingPanel" runat="server" Visible="false" DefaultButton="AddNewSaveButton">
                 //Several textboxes and drop downs contained here.              
 </asp:Panel>

RadAjaxManagerProxy is set to update the wrapping panel that wraps all content on the page
<asp:Panel ID="CheckoutWrapperPanel" runat="server">
//All page content here
</asp:Panel>

RadAjaxManagerProxy outside of the wrapper is updating all other controls on page as desired except for the AddNewShippingPanel which is triggered by the RadioButtonList.

<telerik:AjaxSetting AjaxControlID="ShippingAddressRadioButtonList">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="CheckoutWrapperPanel" LoadingPanelID="LoadingPanel" />
    </UpdatedControls>
</telerik:AjaxSetting>

Viewing with Firefox's plugin Firebug, I am getting a script error coming from telerik which is a generic TypeError: a is undefined . If I remove the ajaxproxy update, my scenario works fine, just with no ajax or updatepanel.

What can I do to remedy this so that when I update the panel set to visible=false, that the ajax will fire with no error?

1 Answer, 1 is accepted

Sort by
0
Geoff
Top achievements
Rank 1
answered on 23 Oct 2014, 05:59 PM
Turns out there was no problem with the telerik controls. I had a project issue where some redirection code was causing a 404 on ScriptResource.axd .

No assistance is needed.
Tags
Ajax
Asked by
Geoff
Top achievements
Rank 1
Answers by
Geoff
Top achievements
Rank 1
Share this question
or