Back to Devexpress

ASPxClientGlobalEvents.EndCallback Event

aspnet-js-aspxclientglobalevents-86891ba4.md

latest1.7 KB
Original Source

ASPxClientGlobalEvents.EndCallback Event

Occurs on the client side, after server-side processing of a callback initiated by any DevExpress web control, has been completed.

Declaration

ts
EndCallback: ASPxClientEvent<ASPxClientGlobalEndCallbackEventHandler<ASPxClientGlobalEvents>>

Event Data

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

PropertyDescription
commandGets a command name that identifies which client action forced a callback to occur. Inherited from ASPxClientEndCallbackEventArgs.
controlGets an object that initiated a callback.

Remarks

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

The code sample below demonstrates how to automatically update the ASPxHint target UI elements in the EndCallback event handler.

js
function onGlobalEndCallback(s, e) {
    if (e.control instanceof ASPxClientGridView) {
        ASPxClientHint.Update();
    }
}

See Also

ASPxClientGlobalEvents Class

ASPxClientGlobalEvents Members