Skip to main content
A newer version of this page is available. .

Dashboard.DataLoading Event

Allows you to provide data for the DashboardObjectDataSource.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v18.2.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.
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