ASPxClientDashboardItemWidgetEventArgs Class
Provides data for events related to client widgets used to visualize data in dashboard items.
Declaration
declare class ASPxClientDashboardItemWidgetEventArgs extends ASPxClientEventArgs
Remarks
The Web Dashboard uses DevExtreme widgets to visualize data within dashboard items. The ASPxClientDashboard.ItemWidgetCreated event allows you to access these widgets and customize their settings if necessary.
The ASPxClientDashboardItemWidgetEventArgs.ItemName property returns the component name of the dashboard item whose widget may be customized. Use the ASPxClientDashboardItemWidgetEventArgs.GetWidget method to access the corresponding underlying widget. You can change the widget setting or handle its events. To unsubscribe from widget events, handle the ASPxClientDashboard.ItemBeforeWidgetDisposed event.
The following table lists dashboard items for which access to client widgets is provided.
Dashboard Item | Underlying Widget(s) |
---|---|
GridItem | dxDataGrid |
ChartItem ScatterChartItem |
dxChart |
PieItem | an array of dxPieChart widgets |
GaugeItem | an array of dxCircularGauge or dxLinearGauge widgets |
MapItem | dxVectorMap |
PivotItem | dxPivotGrid |
ComboBoxItem | dxSelectBox or dxTagBox |
ListBoxItem | dxList |
TreeViewItem | dxTreeList dxTreeView (for v17.1 and earlier) |
TreemapItem | dxTreeMap |
RangeFilterItem | dxRangeSelector |
CardItem | CardWidget |
DateFilterItem | DateFilterWidget |
TextBoxItem | n/a[1] |
ImageItem | n/a[1] |
CustomItem | n/a[2] |
Inherited Members
Inheritance
-
The content of the TextBoxItem and the ImageItem is an HTML element wrapped in a jQuery object.
-
The CustomItem is a custom widget. You can customize it directly.
Properties
ItemName Property
Gets the component name of the dashboard item for which the event was raised.
Declaration
ItemName: string
Property Value
Type | Description |
---|---|
string | A string value that is the component name of the dashboard item. |
Remarks
Use the ASPxClientDashboardItemWidgetEventArgs.GetWidget property to access the widget corresponding to the current dashboard item.
Methods
GetWidget Method
Returns an underlying widget corresponding to the current dashboard item.
Declaration
GetWidget(): any
Returns
Type | Description |
---|---|
any | An underlying widget. |
Remarks
See Working with Widgets topic for information on how to configure the obtained widget.
Note
The getWidget property can return an array of widgets for some dashboard items:
- For the PieItem, getWidget returns an array of dxPieChart widgets.
- For the GaugeItem, getWidget returns an array of dxCircularGauge or dxLinearGauge widgets.