Skip to main content
All docs
V24.1

DashboardExporter.DataLoadingError Event

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

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v24.1.Core.dll

NuGet Package: DevExpress.Dashboard.Core

Declaration

public event DataLoadingErrorEventHandler DataLoadingError

Event Data

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

Property Description
Errors Gets errors that occur during data loading.
Handled Gets or sets whether default actions are required when data loading errors occur.

Remarks

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

using DevExpress.DashboardCommon;

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

The following code snippets (auto-collected from DevExpress Examples) contain references to the DataLoadingError 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