Back to Devexpress

Customization

dashboard-401782-winforms-dashboard-winforms-viewer-customization.md

latest7.4 KB
Original Source

Customization

  • Dec 22, 2020
  • 2 minutes to read

This topic describes how you can customize the WinForms Dashboard Viewer.

Access to Underlying Controls

The WinForms Dashboard Viewer uses DevExpress WinForms controls to visualize data within dashboard items. If necessary, you can access these controls and customize their settings to add specific capabilities.

Tip

Documentation : Access to Underlying Controls

Custom Properties

Custom properties allow you to store custom settings in a dashboard definition. You can read these settings and use these values to implement and embed your functionality into the Dashboard Designer.

The image below displays added custom functionality:

Tip

Documentation : Custom Properties

Title and Caption

The Dashboard Title and Dashboard Item Caption are areas located on the dashboard surface and contain relevant up-to-date information and command buttons. They are already packed with useful indicators and buttons, but you can also deliberately hide built-in items or add your own.

The image below displays the Description button added to the dashboard title:

Tip

Documentation :

The DashboardViewer control has multiple popup menus that allow users to interact with dashboard items or the entire dashboard.

Tip

Documentation : Popup Menus

Item Click

You can use the following API to handle mouse actions and get information about clicked elements:

APIDescription
DashboardViewer.DashboardItemClickOccurs when an end user clicks a dashboard item.
DashboardViewer.DashboardItemDoubleClickOccurs when an end user double-clicks a dashboard item.
DashboardViewer.DashboardItemMouseDownOccurs when the mouse pointer is over the dashboard item and a mouse button is pressed.
DashboardViewer.DashboardItemMouseUpOccurs when the mouse pointer is over the dashboard item and a mouse button is released.
DashboardViewer.DashboardItemMouseEnterOccurs when the mouse pointer enters the dashboard item.
DashboardViewer.DashboardItemMouseLeaveOccurs when the mouse pointer leaves the dashboard item.
DashboardViewer.DashboardItemMouseHoverOccurs when the mouse pointer rests on the dashboard item.
DashboardViewer.DashboardItemMouseMoveOccurs when the mouse pointer is moved over the dashboard item.

Custom Interactivity

You can provide custom visual interactivity for data-bound dashboard items that support element selection and highlighting.

The following table lists possible target axes for each dashboard item and supported interactivity capabilities:

|

Dashboard Item

|

Target Axes

|

Selection

|

Highlighting

| | --- | --- | --- | --- | |

GridDashboardItem

|

DashboardDataAxisNames.DefaultAxis

|

| | |

ChartDashboardItem

|

DashboardDataAxisNames.ChartArgumentAxis

DashboardDataAxisNames.ChartSeriesAxis

|

|

| |

ScatterChartDashboardItem

|

DashboardDataAxisNames.ChartArgumentAxis

|

|

| |

PieDashboardItem

|

DashboardDataAxisNames.ChartArgumentAxis

DashboardDataAxisNames.ChartSeriesAxis

|

|

| |

CardDashboardItem

|

DashboardDataAxisNames.DefaultAxis

|

|

| |

GaugeDashboardItem

|

DashboardDataAxisNames.DefaultAxis

|

|

| |

MapDashboardItem

|

DashboardDataAxisNames.DefaultAxis

|

| | |

TreemapDashboardItem

|

DashboardDataAxisNames.DefaultAxis

|

|

|

Note

A Grid dashboard item with enabled Cell Merging does not support custom interactivity.

Tip

Documentation : DashboardViewer.DashboardItemVisualInteractivity