Skip to main content

Dashboard.DataLoading Event

Allows you to provide data for the DashboardObjectDataSource.

Namespace: DevExpress.DashboardCommon

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

Declaration

public event DashboardDataLoadingEventHandler DataLoading

Event Data

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

Property Description
Data Gets or sets data for the current data source.
DataSource Obtains the data source that provides data for the dashboard. Inherited from DataSourceEventArgs.
OverwriteDataSourceProperty Specifies whether the DataSource and DataMember properties of the DashboardObjectDataSource are set when data is supplied in the event handler.
Parameters Provides access to dashboard parameters required to modify your data query.

Remarks

Allows you to provide data for the DashboardObjectDataSource.

The DataLoading event is raised when the dashboard needs to load data from a data source of the DashboardObjectDataSource type. Use the e.Data property to provide data for this data source. This object should implement the IEnumerable or IListSource interface. Use the e.Parameters property to obtain dashboard parameters required to modify your data query.

Tip

You can subscribe to this event and subsequently load a dashboard bound to an object data source. The event fires and enables you to supply data to the loaded dashboard.

For other data source types (for instance, DashboardSqlDataSource or DashboardOlapDataSource), you can handle the Dashboard.ConfigureDataConnection event to customize connection parameters.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DataLoading 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