Back to Devexpress

Dashboard.DataLoading Event

dashboard-devexpress-dot-dashboardcommon-dot-dashboard-92db2825.md

latest3.8 KB
Original Source

Dashboard.DataLoading Event

Allows you to provide data for the DashboardObjectDataSource.

Namespace : DevExpress.DashboardCommon

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public event DashboardDataLoadingEventHandler DataLoading
vb
Public Event DataLoading As DashboardDataLoadingEventHandler

Event Data

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

PropertyDescription
DataGets or sets data for the current data source.
DataSourceObtains the data source that provides data for the dashboard. Inherited from DataSourceEventArgs.
OverwriteDataSourcePropertySpecifies whether the DataSource and DataMember properties of the DashboardObjectDataSource are set when data is supplied in the event handler.
ParametersProvides 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

ConfigureDataConnection

Object Data Source

Dashboard Class

Dashboard Members

DevExpress.DashboardCommon Namespace