Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Collapse]ASP.NET Bootstrap Controls
  ASP.NET Bootstrap Controls - Overview
 [Expand]Getting Started
 [Expand]Grid View
 [Expand]Card View
 [Expand]Charts
  Sparkline
 [Expand]Data Editors
 [Expand]Site Navigation
 [Expand]Site Layout
 [Expand]Scheduler
 [Expand]Redistribution and Deployment
 [Collapse]API Reference
  [Expand]DevExpress.Web.Bootstrap
  [Collapse]DevExpress.Web.Bootstrap.Scripts
   [Expand]BootstrapClientAccordion Class
   [Expand]BootstrapClientAccordionGroup Class
   [Expand]BootstrapClientAccordionGroupCancelEventArgs Class
    BootstrapClientAccordionGroupCancelEventHandler Delegate
   [Expand]BootstrapClientAccordionGroupClickEventArgs Class
    BootstrapClientAccordionGroupClickEventHandler Delegate
   [Expand]BootstrapClientAccordionGroupEventArgs Class
    BootstrapClientAccordionGroupEventHandler Delegate
   [Expand]BootstrapClientAccordionItem Class
   [Expand]BootstrapClientAccordionItemEventArgs Class
    BootstrapClientAccordionItemEventHandler Delegate
   [Expand]BootstrapClientBinaryImage Class
   [Expand]BootstrapClientButton Class
   [Expand]BootstrapClientButtonEdit Class
   [Expand]BootstrapClientCalendar Class
   [Expand]BootstrapClientCallbackPanel Class
   [Expand]BootstrapClientCardView Class
   [Expand]BootstrapClientChart Class
   [Expand]BootstrapClientChartBase Class
    BootstrapClientChartBaseDoneEventHandler Delegate
    BootstrapClientChartBaseLegendClickEventHandler Delegate
    BootstrapClientChartBasePointClickEventHandler Delegate
    BootstrapClientChartBasePointHoverChangedEventHandler Delegate
    BootstrapClientChartBasePointSelectionChangedEventHandler Delegate
    BootstrapClientChartBaseTooltipHiddenEventHandler Delegate
    BootstrapClientChartBaseTooltipShownEventHandler Delegate
   [Expand]BootstrapClientChartZoomEndEventArgs Class
    BootstrapClientChartZoomEndEventHandler Delegate
    BootstrapClientChartZoomStartEventHandler Delegate
   [Expand]BootstrapClientCheckBox Class
   [Expand]BootstrapClientCheckBoxList Class
   [Expand]BootstrapClientComboBox Class
    BootstrapClientCoordinateSystemChartArgumentAxisClickEventHandler Delegate
    BootstrapClientCoordinateSystemChartSeriesClickEventHandler Delegate
    BootstrapClientCoordinateSystemChartSeriesHoverChangedEventHandler Delegate
    BootstrapClientCoordinateSystemChartSeriesSelectionChangedEventHandler Delegate
   [Expand]BootstrapClientDateEdit Class
   [Expand]BootstrapClientDropDownEdit Class
   [Expand]BootstrapClientFormLayout Class
   [Expand]BootstrapClientGridView Class
   [Expand]BootstrapClientHyperLink Class
   [Expand]BootstrapClientImage Class
   [Expand]BootstrapClientListBox Class
   [Expand]BootstrapClientListBoxItem Class
   [Expand]BootstrapClientMemo Class
   [Expand]BootstrapClientMenu Class
   [Expand]BootstrapClientMenuItem Class
   [Expand]BootstrapClientMenuItemClickEventArgs Class
    BootstrapClientMenuItemClickEventHandler Delegate
   [Expand]BootstrapClientMenuItemEventArgs Class
    BootstrapClientMenuItemEventHandler Delegate
   [Expand]BootstrapClientMenuItemMouseEventArgs Class
    BootstrapClientMenuItemMouseEventHandler Delegate
   [Expand]BootstrapClientPageControl Class
   [Expand]BootstrapClientPager Class
   [Expand]BootstrapClientPieChart Class
   [Expand]BootstrapClientPolarChart Class
   [Expand]BootstrapClientPopupControl Class
   [Expand]BootstrapClientPopupMenu Class
   [Expand]BootstrapClientProgressBar Class
   [Expand]BootstrapClientRadioButton Class
   [Expand]BootstrapClientRadioButtonList Class
   [Expand]BootstrapClientRangeSelector Class
   [Expand]BootstrapClientRangeSelectorValueChangedEventArgs Class
    BootstrapClientRangeSelectorValueChangedEventHandler Delegate
   [Expand]BootstrapClientSparkline Class
    BootstrapClientSparklineOptionChangedEventHandler Delegate
    BootstrapClientSparklineTooltipHiddenEventHandler Delegate
    BootstrapClientSparklineTooltipShownEventHandler Delegate
   [Expand]BootstrapClientSpinEdit Class
   [Expand]BootstrapClientTab Class
   [Expand]BootstrapClientTabControl Class
   [Expand]BootstrapClientTabControlTabCancelEventArgs Class
    BootstrapClientTabControlTabCancelEventHandler Delegate
   [Expand]BootstrapClientTabControlTabClickEventArgs Class
    BootstrapClientTabControlTabClickEventHandler Delegate
   [Expand]BootstrapClientTabControlTabEventArgs Class
    BootstrapClientTabControlTabEventHandler Delegate
   [Expand]BootstrapClientTagBox Class
   [Expand]BootstrapClientTextBox Class
   [Expand]BootstrapClientTimeEdit Class
   [Expand]BootstrapClientToolbar Class
   [Expand]BootstrapClientTreeView Class
   [Expand]BootstrapClientTreeViewNode Class
   [Expand]BootstrapClientTreeViewNodeCancelEventArgs Class
    BootstrapClientTreeViewNodeCancelEventHandler Delegate
   [Expand]BootstrapClientTreeViewNodeClickEventArgs Class
    BootstrapClientTreeViewNodeClickEventHandler Delegate
   [Expand]BootstrapClientTreeViewNodeEventArgs Class
    BootstrapClientTreeViewNodeEventHandler Delegate
   [Expand]BootstrapClientTreeViewNodeProcessingModeEventArgs Class
    BootstrapClientTreeViewNodeProcessingModeEventHandler Delegate
   [Expand]BootstrapClientUploadControl Class
   [Expand]BootstrapClientUtils Class
   [Collapse]BootstrapUIWidgetBase Class
     BootstrapUIWidgetBase Members
     BootstrapUIWidgetBase Constructor
    [Collapse]BootstrapUIWidgetBase Events
      Disposing Event
      Drawn Event
      Exported Event
      Exporting Event
      FileSaving Event
      IncidentOccurred Event
      Init Event
      OptionChanged Event
    [Expand]BootstrapUIWidgetBase Methods
    BootstrapUIWidgetDisposingEventHandler Delegate
    BootstrapUIWidgetDrawnEventHandler Delegate
   [Expand]BootstrapUIWidgetElementActionEventArgs Class
   [Expand]BootstrapUIWidgetElementClickEventArgs Class
   [Expand]BootstrapUIWidgetErrorEventArgs Class
    BootstrapUIWidgetErrorEventHandler Delegate
   [Expand]BootstrapUIWidgetEventArgsBase Class
    BootstrapUIWidgetExportedEventHandler Delegate
   [Expand]BootstrapUIWidgetExportEventArgs Class
    BootstrapUIWidgetExportingEventHandler Delegate
    BootstrapUIWidgetFileSavingEventHandler Delegate
    BootstrapUIWidgetInitializedEventHandler Delegate
   [Expand]BootstrapUIWidgetOptionChangedEventArgs Class
    BootstrapUIWidgetOptionChangedEventHandler Delegate
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

BootstrapUIWidgetBase.IncidentOccurred Event

Fires when an error or warning appears in the widget.

Namespace:DevExpress.Web.Bootstrap.Scripts
Assembly:DevExpress.Web.Bootstrap.v18.1.Scripts.dll

Expanded Syntax

Expanded Event Data

The event handler receives an argument of type BootstrapUIWidgetErrorEventArgs containing data related to this event.

The following BootstrapUIWidgetErrorEventArgs properties provide information specific to this event.
Property Description
component The widget instance.
element The widget's container.
target Contains information on the error that occurred.

Expanded Remarks

When an error or warning appears, the widget notifies you by passing a message to the browser console. This message contains the ID of the incident, a brief description, and a link to the Errors and Warnings section where further information about this incident can be found. However, you can handle errors and warnings in the way that you require. To do this, handle the IncidentOccurred event. Within the event handler, you can use information about the incident that occurred. This information can be accessed from the target field of the object passed to the callback function as a parameter. This information includes the following:

  • id - Contains the ID of the incident. The full list of IDs can be found in the Errors and Warnings section.
  • type - Contains the type of the incident. This field equals "error" for errors or "warning" for warnings.
  • args - Contains the argument of the incident's message. The content of this field varies greatly, depending on the incident. For example, it may contain the name of the data source field that was not specified correctly, or the name of the option that was not set properly.
  • text - Contains the text passed to the browser console. This text includes the contents of the args field, if there are any.
  • widget - Contains the name of the widget that produced the error or warning.
  • version - Contains the currently used version of the DevExtreme library.

Expanded See Also

Is this topic helpful?​​​​​​​