All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Handle Events

Use the () syntax to handle an event and pass the $event object to listen the event.

The following code handles the onDashboardInitialized event and shows the dashboard identifier in a toast message:

<dx-dashboard-control 
    (onDashboardInitialized) = "onDashboardInitialized($event)"
>
</dx-dashboard-control>

In nested components, the () syntax cannot be used. Use the [] syntax instead.

The following code hides the CategoryName column from the Data Inspector's grid:

<dx-dashboard-control>
      <dxo-extensions>
        <dxo-data-inspector
            [onGridContentReady] = 'onGridContentReady'>
        </dxo-data-inspector>
    </dxo-extensions>
</dx-dashboard-control>
TIP

DevExtreme Documentation: Event Handling

Angular Documentation: Event Binding