# Events

The Telerik UI Wizard for ASP.NET Core [exposes a number of events](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/wizardeventbuilder) that allow you to control the behavior of the UI component.

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

## Handling by Handler Name

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

```Razor HtmlHelper
    @(Html.Kendo().Wizard()
        .Name("wizard")
        .Events(e => e.Activate("onActivate"))
        ... //Additional configuration
    )

    <script>
        function onActivate(e){
            // Handle the Wizard Activate event that triggers when a new step has been selected upon user interaction.
        };
    </script>
```

```Razor TagHelper
    <kendo-wizard name="wizard" on-activate="onActivate">
      
    </kendo-wizard>

    <script>
        function onActivate(e){
            // Handle the Wizard Activate event that triggers when a new step has been selected upon user interaction.
        };
    </script>
```

## Handling by Template Delegate

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

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

```Razor TagHelper
    <kendo-wizard name="wizard" 
        on-activate="function() {
            // Handle the Wizard Activate event inline.
        }">
    </kendo-wizard>
```

## Next Steps

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

## See Also

* [Wizard Server-Side API for ASP.NET Core](https://www.telerik.com/aspnet-core-ui/documentation/api/wizard)
* [Wizard Client-Side API](https://docs.telerik.com/kendo-ui/api/ui/wizard)
