Skip to main content

MVCxClientGlobalEvents.CallbackError Event

Fires on the client if any server error occurs during server-side processing of a callback sent by a DevExpress MVC extension.

Declaration

CallbackError: ASPxClientEvent<ASPxClientGlobalCallbackErrorEventHandler<MVCxClientGlobalEvents>>

Event Data

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

Property Description
control Gets an object that initiated a callback.
handled Gets or sets whether the event is handled and the default error handling actions are not required. Inherited from ASPxClientCallbackErrorEventArgs.
message Gets the error message that describes the server error that occurred. Inherited from ASPxClientCallbackErrorEventArgs.

Remarks

The CallbackError event enables you to properly respond to a server error occurring as a result of a callback processed on the server side. You can handle this event to perform specific client-side actions, for example, displaying explanatory text or an image related to the error.

Typically, a server error which occurs during server-side processing of a callback, leads to web application hanging, because in this case, no proper response is generated for the DevExpress client object that initiated the callback. However, AJAX-enabled DevExpress MVC extensions are able to automatically catch server errors occurring during server-side processing, and to pass the related error information to the client for further processing through the CallbackError event’s argument.

See Handling Callback Exceptions on the Client Side to learn more.

See Also