Back to Devexpress

DashboardControl.GetItemData(String) Method

dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrol-dot-getitemdata-x28-system-dot-string-x29.md

latest3.8 KB
Original Source

DashboardControl.GetItemData(String) Method

Returns the client data for the specified dashboard item.

Namespace : DevExpress.DashboardWpf

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

NuGet Package : DevExpress.Wpf.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 is the 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 snippets (auto-collected from DevExpress Examples) contain references 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.

wpf-dashboard-how-to-embed-devexpress-control/CS/GanttSample/GanttViewModel.cs#L59

csharp
}
MultiDimensionalData data = dashboardControl.GetItemData(name);
GanttTasks = ConfigureGanttTasks(data);

dashboard-constant-lines/CS/ConstantLineExtension.WPF/ConstantLineModule.cs#L85

csharp
{
    MultiDimensionalData data = dashboardControl.GetItemData(chartItem.ComponentName);
    MeasureDescriptor measure = data.GetMeasures().FirstOrDefault(m => m.ID == customConstantLine.MeasureId);

wpf-dashboard-how-to-embed-devexpress-control/VB/GanttSample/GanttViewModel.vb#L69

vb
Loop
Dim data As MultiDimensionalData = dashboardControl.GetItemData(name)
GanttTasks = ConfigureGanttTasks(data)

Implements

GetItemData(String)

See Also

GetUnderlyingData

Underlying and Displayed Data in WPF Dashboard Control

DashboardControl Class

DashboardControl Members

DevExpress.DashboardWpf Namespace