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.
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