Skip to main content
A newer version of this page is available. .

ASPxCallbackPanel Class

A callback panel control that allows you to update its content on a callback.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll


public class ASPxCallbackPanel :


The Callback Panel is a container area that allows you to update its content using an AJAX-based callback technology.

Create a Callback Panel

Design Time

The ASPxCallbackPanel control is available on the DX.20.2: Navigation & Layout toolbox tab in the Microsoft Visual Studio IDE.

Drag the control onto a form and customize the control’s settings, or paste the control markup in the page’s source code.


To properly function, DevExpress controls require that special modules, handlers and options are registered in the the Web.config file. Switch the Microsoft Visual Studio IDE to the Design tab to automatically update the Web.config file with the required DevExpress information.

<dx:ASPxCallbackPanel ID="ASPxCallbackPanel1" runat="server" Width="200px">
        <dx:PanelContent runat="server">
            <dx:ASPxTextBox ID="ASPxTextBox1" runat="server" Width="170px">

Run Time

protected void Page_Load(object sender, EventArgs e)
    ASPxCallbackPanel cpanel = new ASPxCallbackPanel();
    cpanel.ID = "ASPxCallbackPanel1";
    cpanel.Controls.Add(new ASPxTextBox() { ID = "ASPxTextBox1", Text = "Test" });

Client-Side API

The ASPxCallbackPanel’s client-side API is implemented with JavaScript language and exposed by the ASPxClientCallbackPanel object.


Available by default.

Client object type


Access name





The following API allows you to manipulate the callback panel on the client side:

Use the ASPxPanelContainerBase.Controls property to access the collection of the ASPxCallbackPanel‘s child controls.


Full example - How to implement a custom loading panel for the ASPxCallbackPanel control

<div class="sendCommentBlock">
    <dx:ASPxButton ID="Button" runat="server" Text="Post Comment" AutoPostBack="false">
        <ClientSideEvents Click="SendCommentCallback" />
    <br />
    <br />
    <dx:ASPxTextBox ID="TextBox" runat="server" Width="170px"></dx:ASPxTextBox>

<dx:ASPxCallbackPanel ID="CallbackPanel" ClientInstanceName="CallbackPanel" runat="server" CssClass="pnl" 
OnCallback="CallbackPanel_Callback" OnInit="CallbackPanel_Init">
    <ClientSideEvents BeginCallback="OnBeginCallback" EndCallback="OnEndCallback" />
            <dx:ASPxLabel ID="CountLabel" runat="server" Text="Comments Count : "></dx:ASPxLabel>
            <br />
            <br />
            <dx:ASPxLabel ID="NoCommentsLabel" runat="server" Text="No Comments" ForeColor="Gray">
<dx:ASPxLoadingPanel ID="LoadingPanel" ClientInstanceName="LoadingPanel" runat="server" Modal="true" 
    HorizontalAlign="Center" VerticalAlign="Middle">
    <Image Url="Images/load.gif" Height="50px" Width="50px"></Image>

Online Demos

Online Examples

See Also