Back to Devexpress

ASPxClientGlobalEvents.BeginCallback Event

aspnet-js-aspxclientglobalevents.md

latest1.9 KB
Original Source

ASPxClientGlobalEvents.BeginCallback Event

Occurs when a callback for server-side processing is initiated by any DevExpress control.

Declaration

ts
BeginCallback: ASPxClientEvent<ASPxClientGlobalBeginCallbackEventHandler<ASPxClientGlobalEvents>>

Event Data

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

PropertyDescription
commandGets a command name that identifies which client action initiated a callback. Inherited from ASPxClientBeginCallbackEventArgs.
controlGets an object that initiated a callback.

Remarks

The BeginCallback event together with the ASPxClientGlobalEvents.EndCallback event 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

aspx
<dx:ASPxGlobalEvents ID="ASPxGlobalEvents1" runat="server">
    <ClientSideEvents 
       BeginCallback="function(s, e) {
        alert('BeginCallback ' + e.control.name);
    }" CallbackError="function(s, e) {
        alert('CallbackError ' + e.control.name);
    }" EndCallback="function(s, e) {
        alert('EndCallback ' + e.control.name);
    }" />
</dx:ASPxGlobalEvents>

See Also

EndCallback

Callbacks

ASPxClientGlobalEvents Class

ASPxClientGlobalEvents Members