Back to Devexpress

DashboardDesigner.DashboardItemBeforeControlDisposed Event

dashboard-devexpress-dot-dashboardwin-dot-dashboarddesigner-20161b25.md

latest7.5 KB
Original Source

DashboardDesigner.DashboardItemBeforeControlDisposed Event

Allows you to access underlying WinForms controls.

Namespace : DevExpress.DashboardWin

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

NuGet Package : DevExpress.Win.Dashboard

Declaration

csharp
public event DashboardItemBeforeControlDisposedEventHandler DashboardItemBeforeControlDisposed
vb
Public Event DashboardItemBeforeControlDisposed As DashboardItemBeforeControlDisposedEventHandler

Event Data

The DashboardItemBeforeControlDisposed event's data class is DashboardItemControlEventArgs. The following properties provide information specific to this event:

PropertyDescription
CardControlGets an underlying Card control.
ChartContextGets the chart context.
ChartControlGets an underlying chart control.
DashboardItemNameGets the component name of the dashboard item for which the event was raised.
DateFilterControlGets an underlying date filter control.
GaugeContextGets the gauge context.
GaugeControlGets an underlying gauge control.
GridContextGets the grid context.
GridControlGets an underlying grid control.
MapControlGets an underlying map control.
PictureEditGets an underlying picture edit control.
PivotGridControlGets an underlying PivotGridControl.
RichEditControlGets an underlying RichEdit control.
TreeMapControlGets an underlying TreeMap control.

Remarks

The DashboardDesigner uses DevExpress WinForms controls to visualize data within dashboard items. The DashboardDesigner.DashboardItemControlUpdated event allows you to access these controls and customize their settings if necessary.

The DashboardItemControlEventArgs.DashboardItemName property returns the component name of the dashboard item to be customized. Use the following properties to access the corresponding underlying controls.

|

Dashboard Item

|

Control

|

Property

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

GridDashboardItem

|

GridControl

|

DashboardItemControlEventArgs.GridControl

| |

ChartDashboardItem

PieDashboardItem

ScatterChartDashboardItem

|

ChartControl

|

DashboardItemControlEventArgs.ChartControl

| |

GaugeDashboardItem

|

GaugeControl

|

DashboardItemControlEventArgs.GaugeControl

| |

CardDashboardItem

|

CardControl

|

DashboardItemControlEventArgs.CardControl

| |

PivotDashboardItem

|

PivotGridControl

|

DashboardItemControlEventArgs.PivotGridControl

| |

MapDashboardItem

|

MapControl

|

DashboardItemControlEventArgs.MapControl

| |

TreemapDashboardItem

|

TreeMapControl

|

DashboardItemControlEventArgs.TreeMapControl

| |

TextBoxDashboardItem

|

RichEditControl

|

DashboardItemControlEventArgs.RichEditControl

| |

ImageDashboardItem

|

PictureEdit

|

DashboardItemControlEventArgs.PictureEdit

| |

DateFilterDashboardItem

|

DateFilterControl

|

DashboardItemControlEventArgs.DateFilterControl

|

You can change the control setting or handle its events. To subscribe/unsubscribe from control events, use the DashboardDesigner.DashboardItemControlCreated/ DashboardItemBeforeControlDisposed events, respectively.

Implements

DashboardItemBeforeControlDisposed

See Also

DashboardDesigner Class

DashboardDesigner Members

DevExpress.DashboardWin Namespace