All docs
V21.1
21.1
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

MessageHandler Variable

Allows you to customize messages shown to the user.

Declaration

export var MessageHandler: (newVal?: IMessageHandler) => IMessageHandler;

Members

Type
(newVal?: IMessageHandler) => IMessageHandler

Remarks

Use the MessageHandler property to customize error messages shown to the user, as demonstrated in the following code snippet:

DevExpress.Reporting.Viewer.Settings.MessageHandler.processError
    = function (message, showForUser, prefix) {
            DevExpress.Analytics.Internal.ShowMessage(prefix.substring(0, prefix.length - 2));
        };

The picture below shows the Document Viewer, which attempts to load the “TestReport1” report whose data is corrupted. A custom error message is displayed: