AjaxUpdatedControl Properties | RadAjax for ASP.NET AJAX Documentation
Edit this page

AjaxUpdatedControl Properties

When configuring ajax settings, be it declaratively, or dynamically, you might need to set some of the below properties to each of the updated controls:

  • LoadingPanelID - gets or sets the loading panel ID which is will be displayed over the updated control during ajax.

  • UpdatePanelHeight - determines what will be the height of the ajax panel wrapped around the updated control. Useful when you need to set 100% high to the parent of the updated control.

  • UpdatePanelRenderMode - determines what will be the ajax panel render mode. For more information see this article


<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <telerik:AjaxSetting AjaxControlID="Button1">
                <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1"
                    UpdatePanelHeight="200px" UpdatePanelRenderMode="Inline" />
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
<asp:Panel ID="Panel1" runat="server">
protected void Page_Load(object sender, EventArgs e)
            AjaxSetting ajaxSetting = new AjaxSetting();
            ajaxSetting.AjaxControlID = "Button1";

            AjaxUpdatedControl updatedControl = new AjaxUpdatedControl();
            updatedControl.ControlID = "Panel1";
            updatedControl.LoadingPanelID = "RadAjaxLoadingPanel1";
            updatedControl.UpdatePanelHeight = Unit.Pixel(200);
            updatedControl.UpdatePanelRenderMode = UpdatePanelRenderMode.Inline;

Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
            Dim ajaxSetting As New AjaxSetting()
            ajaxSetting.AjaxControlID = "Button1"
            Dim updatedControl As New AjaxUpdatedControl()
            updatedControl.ControlID = "Panel1"
            updatedControl.LoadingPanelID = "RadAjaxLoadingPanel1"
            updatedControl.UpdatePanelHeight = Unit.Pixel(200)
            updatedControl.UpdatePanelRenderMode = UpdatePanelRenderMode.Inline
End Sub

Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article