DataApiProvider.DataLoading Event

Allows you to provide data for the DashboardObjectDataSource.

Namespace: DevExpress.DashboardWeb

Assembly: DevExpress.Dashboard.v18.1.Web.WebForms.dll

Declaration

public event ServiceDataLoadingEventHandler DataLoading
Public Event DataLoading As ServiceDataLoadingEventHandler

The event handler receives an argument of the DevExpress.DashboardCommon.ServiceDataLoadingEventHandler type.

The DataLoading event is raised when the dashboard needs to load data from a data source assigned using the DashboardObjectDataSource. Use the event parameter's DataLoadingEventArgs.Data property to provide data for this data source. This object should implement the IEnumerable or IListSource interface.

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