Skip to main content

ASPxClientTreeView.BeginCallback Event

Occurs when a callback for server-side processing is initiated.


BeginCallback: ASPxClientEvent<ASPxClientBeginCallbackEventHandler<ASPxClientTreeView>>

Event Data

The BeginCallback event's data class is ASPxClientBeginCallbackEventArgs. The following properties provide information specific to this event:

Property Description
command Gets a command name that identifies which client action initiated a callback.


The BeginCallback event, together with the ASPxClientTreeView.EndCallback event can be used to perform specific client-side actions, while a callback is being processed on the server side.


The code below describes how you can handle the BeginCallback and EndCallback events, to display the explanatory text in a label while a callback is being processed on the server side.

<dx:ASPxTreeView ID="ASPxTreeView1" runat="server" DataSourceID="XmlDataSource1" EnableCallBacks="True">
    BeginCallback="function(s, e) {label.SetText('Loading...');}" 
    EndCallback="function(s, e) {label.SetText('The data is loaded');}" />
<br />
<dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="ASPxLabel" ClientInstanceName="label">
See Also