The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxDashboard.DataLoading Event

Allows you to provide data for the DashboardObjectDataSource.

Namespace: DevExpress.DashboardWeb

Assembly: DevExpress.Dashboard.v19.2.Web.WebForms.dll


public event DataLoadingWebEventHandler DataLoading
Public Event DataLoading As DataLoadingWebEventHandler

Event Data

The DataLoading event handler receives an argument of the DataLoadingWebEventArgs type. 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)
OverwriteDataSourceProperty Specifies whether the DataSource and DataMember properties of the DashboardObjectDataSource are set when data is supplied in the event handler.
(Inherited from DataLoadingEventArgs)
Parameters Provides access to parameter values passed to the object data source.
(Inherited from DataLoadingEventArgs)


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 ASPxDashboard.ConfigureDataConnection event to customize connection parameters.


In this example, the ObjectDataSource.DataSource property specifies the type of a data class. The actual data for this data source is provided by handling the ASPxDashboard.DataLoading event.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebDesigner_DataLoading.Default" %>

<%@ Register Assembly="DevExpress.Dashboard.v16.2.Web, Version=, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.DashboardWeb" TagPrefix="dx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head runat="server">
    <form id="form1" runat="server">
    <div style="position: absolute; left: 0; right: 0; top:0; bottom:0;">
        <dx:ASPxDashboard ID="ASPxDashboard1" runat="server" Width="100%" Height="100%" 
See Also