ASPxClientDashboardViewer.ItemBeforeWidgetDisposed Event
Allows you to access underlying UI/Data Visualization widgets.
Namespace: DevExpress.DashboardWeb.Scripts
Assembly: DevExpress.Dashboard.v18.2.Web.WebForms.Scripts.dll
Declaration
public event ASPxClientDashboardItemBeforeWidgetDisposedEventHandler ItemBeforeWidgetDisposed
Event Data
The ItemBeforeWidgetDisposed event's data class is ASPxClientDashboardItemWidgetEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
ItemName | Gets the component name of the dashboard item for which the event was raised. |
The event data class exposes the following methods:
Method | Description |
---|---|
GetWidget() | Returns an underlying widget corresponding to the current dashboard item. |
Remarks
The Web Viewer uses DevExtreme UI widgets to visualize data within dashboard items. The ASPxClientDashboardViewer.ItemWidgetCreated event allows you to access these widgets and customize their settings if necessary.
Use the ASPxClientDashboardItemWidgetEventArgs.GetWidget method to access the corresponding underlying widget. You can change the widget’s setting or handle its events. To unsubscribe from widget events, handle the ItemBeforeWidgetDisposed event.
To learn more, see Access to Underlying Widgets.