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

Strange Ajax Behavior with Radbutton RadAjaxPanel RadAjaxManagerProxy RadAjaxManager RadScriptManager

1 Answer 85 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 24 Aug 2012, 04:28 AM
I am having the hardest time getting a RadButton to invoke a function in the code-behind file, which updates the text of the RadButton.  So far I can get the button to fire with Ajax, but even though the function changes the text it is not reflected back onscreen.  Furthermore, the 2nd time I click the button the page conducts a postback resulting in a view that only shows the contents of the master page.  The content of the web form is blank.

Am I missing or have incorrect parameters?

Web Form RadAjaxPanel + RadButton
<telerik:RadAjaxPanel ID="Panel_MyList" RestoreOriginalRenderDelegate="true" LoadingPanelID="RadAjaxLoadingPanel_MyList" runat="server">
    <telerik:RadButton UseSubmitBehavior="true" AutoPostBack="true" EnableAjaxSkinRendering="false" EnableEmbeddedSkins="false" EnableTheming="false" EnableBrowserButtonStyle="false" EnableEmbeddedBaseStylesheet="false" ButtonType="LinkButton" ID="Button_MyList" OnClick="Button_MyList_OnClick" runat="server" Text="Add to Favorites" CssClass="btn btn-view" style="font-size:18px;"></telerik:RadButton>
</telerik:RadAjaxPanel>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel_MyList" runat="server" />

Web Form RadAjaxManagerProxy
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy_Tour" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="Button_MyList" EventName="Click">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Button_MyList" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManagerProxy>

Master Page RadScriptManager + RadAjaxManager
    <telerik:radscriptmanager ID="Radscriptmanager1" EnablePartialRendering="true" EnablePageMethods="true" ScriptMode="Debug" runat="server"></telerik:radscriptmanager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" EnableAJAX="true" runat="server" />








1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 28 Aug 2012, 07:55 AM
Hello Matt,

Please note that using RadAjaxPanel simultaneously with RadAjaxManager or UpdatePanel ( or implementing multiple wrapped RadAjaxPanels ) is not a supported scenario and we highly recommend to avoid such implementation. Please either use just the manager to update your controls replacing the RadAjaxPanel with a regular asp:Panel, or use the RadAjaxPanel alone to wrap your page.

Furthermore, if you are using a complex scenario like WebUserControls or Master/ContentPages, we recommend you to place RadAjaxManager instance on the main/master page and add a proxy control to the user control/content page as you have already done. Please also check out the following help topic:
RadAjax and MasterPage

I hope this will prove helpful. Please make the suggested modifications and let me know about the result.

Kind regards,
Eyup
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.
Tags
Ajax
Asked by
Matt
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or