ASPxDashboardViewer.DataLoading Event
Allows you to provide data for the DashboardObjectDataSource.
Namespace: DevExpress.DashboardWeb
Assembly: DevExpress.Dashboard.v18.2.Web.WebForms.dll
Declaration
Event Data
The DataLoading event's data class is DataLoadingWebEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
DashboardId | Gets the identifier of the current dashboard. |
Data | Gets or sets data for the current data source. Inherited from DataLoadingEventArgs. |
DataSourceComponentName | Get the component name of the data source for which the event has been raised. Inherited from DataLoadingEventArgs. |
DataSourceName | Gets the name of the data source for which the event has been raised. Inherited from DataLoadingEventArgs. |
Parameters | Provides access to parameter values passed to the object data source. Inherited from DataLoadingEventArgs. |
Remarks
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 ASPxDashboardViewer.ConfigureDataConnection event to customize connection parameters.