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

ASPxClientFileManager.ErrorOccurred Event

Fires on the client if any error occurs while editing an item.

Declaration

ErrorOccurred: ASPxClientEvent<ASPxClientFileManagerErrorEventHandler<ASPxClientFileManager>>

Event Data

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

Property Description
commandName Gets the name of the processed command.
errorCode Gets a specifically generated code that uniquely identifies an error, which occurs while editing an item.
errorText Gets or sets the error description.
showAlert Gets or sets a value specifying whether an event error message is sent to the ASPxClientFileManager.ErrorAlertDisplaying event.

Remarks

The ErrorOccurred event enables you to properly respond to an error occurring as a result of editing an item. You can handle this event to perform specific client-side actions, such as, for example, displaying explanatory text or an image related to the error.

Using the ASPxClientFileManagerErrorEventArgs.commandName property of the event’s argument, you can identify the command currently being processed. The ASPxClientFileManagerErrorEventArgs.errorCode property allows you to access the error name by using the constants, contained within the ASPxClientFileManagerErrorConsts object.

The ASPxClientFileManagerErrorEventArgs.errorText property returns the error explanatory text by default and allows you to provide the custom error description. If the ASPxClientFileManagerErrorEventArgs.showAlert property is set to true, the errorText is added to the resulting ASPxClientFileManagerErrorAlertDisplayingEventArgs.errorText argument property of the ASPxClientFileManager.ErrorAlertDisplaying event.

See Also