# Events

The Telerik UI Chart Wizard for ASP.NET Core [exposes multiple events](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartwizardeventbuilder) like `Change`, `Open`, `Close`, and more, that allow you to control the behavior of the UI component.

For a complete example on basic Chart Wizard events, refer to the [demo on using the events of the Chart Wizard](https://demos.telerik.com/aspnet-core/chartwizard/events).

## Handling by Handler Name

The following example demonstrates how to subscribe to events by a handler name.

```Razor HtmlHelper
    @(Html.Kendo().ChartWizard<Product>()
        .Name("chartWizard")
        .Events(ev => ev.Change("onChange"))
        ... //Additional configuration
    )
```

```Razor TagHelper
    @addTagHelper *, Kendo.Mvc

    <kendo-chartwizard name="chartWizard" on-change="onChange">
        
    </kendo-chartwizard>
```

```JS scripts
    <script>
        function onChange(e){
            // Handle the Chart Wizard "Change" event that triggers when the component changes its state.
        }
    </script>
```

## Handling by Template Delegate

The following example demonstrates how to subscribe to events by a template delegate.

```Razor HtmlHelper
    @(Html.Kendo().ChartWizard<Product>()
        .Name("chartWizard")
        .Events(e => e.Change(@<text>
            function() {
                // Handle the Chart Wizard Change event inline.
            }
            </text>)
        )
        ... //Additional configuration
    )
```

```Razor TagHelper
    @addTagHelper *, Kendo.Mvc

    <kendo-chartwizard name="chartWizard" on-change="function() {
            // Handle the Chart Wizard "Change" event inline.
        }">
        
    </kendo-chartwizard>
```

## Next Steps

* [Using the Chart Wizard Events (Demo)](https://demos.telerik.com/aspnet-core/chartwizard/events)

## See Also

* [Using the API of the Chart Wizard for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/chartwizard/api)

* [Client-Side API of the Chart Wizard](https://docs.telerik.com/kendo-ui/api/ui/chartwizard)

* [Server-Side API of the Chart Wizard](https://www.telerik.com/aspnet-core-ui/documentation/api/chartwizard)

* [Server-Side API of the Chart Wizard TagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/taghelpers/chartwizard)
