The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientFileManager.ErrorAlertDisplaying Event

Enables you to display the alert with the result error description.

Declaration

ErrorAlertDisplaying: ASPxClientEvent<ASPxClientFileManagerErrorAlertDisplayingEventHandler<ASPxClientFileManager>>

Event Data

The ErrorAlertDisplaying event handler receives an argument of the ASPxClientFileManagerErrorAlertDisplayingEventArgs type. The following properties provide information specific to this event.

Property Description
commandName Gets the name of the processed command.
errorText Gets or sets the errors description.
showAlert Gets or sets a value specifying whether an alert message is displayed when the event fires.

Remarks

If an error occurs while files are editing the ASPxClientFileManager.ErrorOccurred event is raised. The ErrorAlertDisplaying event fires after all ErrorOccurred events called by the current command have fired. The ErrorAlertDisplaying event allows you to display the result error message. The event argument's ASPxClientFileManagerErrorAlertDisplayingEventArgs.errorText property contains the descriptions of errors (the ASPxClientFileManagerErrorEventArgs.errorText property values), whose ASPxClientFileManagerErrorEventArgs.showAlert property is set to true in the ErrorOccurred event. You can provide a custom error message instead.

In order to show the alert message with an explanatory text, set the ASPxClientFileManagerErrorAlertDisplayingEventArgs.showAlert property to true.

Using the ASPxClientFileManagerErrorAlertDisplayingEventArgs.commandName property of the event's argument, you can identify the command currently being processed.

Note

If all ErrorOccurred events called by the current command have the showAlert property set to false, the ErrorAlertDisplaying event does not occurs.

See Also