Skip to main content

Dashboard.DataLoading Event

Allows you to provide data for the DashboardObjectDataSource.

Namespace: DevExpress.DashboardCommon

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

NuGet Package: DevExpress.Dashboard.Core

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.

See Also