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

ASPxClientTreeView.EndCallback Event

Occurs on the client side after a callback’s server-side processing has been completed.

Declaration

EndCallback: ASPxClientEvent<ASPxClientEndCallbackEventHandler<ASPxClientTreeView>>

Event Data

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

Property Description
command Gets a command name that identifies which client action forced a callback to occur.

Remarks

The ASPxClientTreeView.BeginCallback and EndCallback events can be used to perform specific client-side actions (for example, to display and hide an explanatory picture) while a callback is being processed on the server side.

Example

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">
    <ClientSideEvents 
    BeginCallback="function(s, e) {label.SetText('Loading...');}" 
    EndCallback="function(s, e) {label.SetText('The data is loaded');}" />
</dx:ASPxTreeView>
<br />
<dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="ASPxLabel" ClientInstanceName="label">
</dx:ASPxLabel>
See Also