Skip to main content
All docs
V23.2

DashboardExporter.DashboardItemDataLoadingError Event

Allows you to detect errors that occurred while a dashboard item loaded data.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v23.2.Core.dll

NuGet Package: DevExpress.Dashboard.Core

Declaration

public event DashboardItemDataLoadingErrorEventHandler DashboardItemDataLoadingError

Event Data

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

Property Description
Errors Gets errors that occurred while a dashboard item loaded data.

Remarks

The following code snippet handles the DashboardItemDataLoadingError event to detect and display errors that occurred while a dashboard item loaded data:

"The following error occurs in {error.DashboardItemName}: {error.Error}"

using DevExpress.DashboardCommon;

namespace DashboardExporterApp {
    class Program {
      //...
        DashboardExporter exporter = new DashboardExporter();
        exporter.DashboardItemDataLoadingError += Exporter_DashboardItemDataLoadingError;
        //...
        static void Exporter_DashboardItemDataLoadingError(object sender, 
        DashboardItemDataLoadingErrorEventArgs e) {
            foreach(DashboardItemDataLoadingError error in e.Errors)
                Console.WriteLine(
                  $"The following error occurs in {error.DashboardItemName}: {error.Error}");
        }
    }
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the DashboardItemDataLoadingError event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also