ASPxClientDashboardItemUnderlyingData Class

Represents a list of records from the dashboard data source.

Namespace: DevExpress.DashboardWeb.Scripts

Assembly: DevExpress.Dashboard.v18.2.Web.WebForms.Scripts.dll

Declaration

public class ASPxClientDashboardItemUnderlyingData
Public Class ASPxClientDashboardItemUnderlyingData

An ASPxClientDashboardItemUnderlyingData object is returned by the ASPxClientDashboard.RequestUnderlyingData / ASPxClientDashboardViewer.RequestUnderlyingData methods.

You can also obtain the underlying data for specific visual elements when handling client-side events, for instance, the ASPxClientDashboard.ItemClick / ASPxClientDashboardViewer.ItemClick events. Use the ASPxClientDashboardItemClickEventArgs.RequestUnderlyingData method to do this.

Examples

The following example demonstrates how to get underlying data corresponding to a particular visual element using the ASPxClientDashboard's API.

In this example, the ASPxClientDashboard.ItemClick event is handled to obtain underlying data and invoke the dxPopup widget with the child dxDataGrid. In the event handler, the ASPxClientDashboardItemClickEventArgs.RequestUnderlyingData method is called to obtain records from the dashboard's data source. The dxDataGrid is used to display these records.

using System;

namespace ASPxDashboard_UnderlyingData
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ASPxDashboard1.DashboardXmlPath = Server.MapPath("App_Data/dashboard1.xml");
        }
    }
}

Inheritance

Object
ASPxClientDashboardItemUnderlyingData

See Also