Back to Devexpress

DashboardViewer.GetItemData(String) Method

dashboard-devexpress-dot-dashboardwin-dot-dashboardviewer-dot-getitemdata-x28-system-dot-string-x29.md

latest3.4 KB
Original Source

DashboardViewer.GetItemData(String) Method

Returns the client data for the specified dashboard item.

Namespace : DevExpress.DashboardWin

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

NuGet Package : DevExpress.Win.Dashboard

Declaration

csharp
public MultiDimensionalData GetItemData(
    string dashboardItemName
)
vb
Public Function GetItemData(
    dashboardItemName As String
) As MultiDimensionalData

Parameters

NameTypeDescription
dashboardItemNameString

A String that specifies the component name of the dashboard item.

|

Returns

TypeDescription
MultiDimensionalData

A MultiDimensionalData object that represents multidimensional data visualized in the dashboard item.

|

Remarks

The GetItemData method also allows you to obtain hidden measures used in the specified dashboard item.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetItemData(String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

how-to-display-the-total-value-above-each-pie-chart/CS/TotalsInChartsExample/Form1.cs#L22

csharp
var data = viewer.GetItemData(e.DashboardItemName);
var measure = data.GetMeasures()[0];

how-to-display-the-total-value-above-each-pie-chart/VB/TotalsInChartsExample/Form1.vb#L22

vb
Dim data = viewer.GetItemData(e.DashboardItemName)
Dim measure = data.GetMeasures()(0)

Implements

GetItemData(String)

See Also

GetUnderlyingData

DashboardViewer Class

DashboardViewer Members

DevExpress.DashboardWin Namespace