# Events

You can subscribe to all [ProgressBar events](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/progressbareventbuilder). For a complete example on basic ProgressBar events, refer to the [demo on using the events of the ProgressBar](https://demos.telerik.com/aspnet-core/progressbar/events).

## Handling by Handler Name

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

```Razor HtmlHelper
    @(Html.Kendo().ProgressBar()
            .Name("progressBar")
            .Events(e => {
                    e.Change("onChange");
                    e.Complete("onComplete");
            })
    )
    <script>
        function onChange(e) {
            // Handle the change event.
        }

        function onComplete(e) {
            // Handle the complete event.
        }
    </script>
```

```Razor TagHelper
    <kendo-progressbar name="progressBar" on-change="onChange" on-complete="onComplete"/>
        <script>
        function onChange(e) {
            // Handle the change event.
        }

        function onComplete(e) {
            // Handle the complete event.
        }
    </script>
```

## Handling by Template Delegate

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

```Razor HtmlHelper
    @(Html.Kendo().ProgressBar()
        .Name("progressBar")
        .Events(e => e.Change(@<text>
                function() {
                    // Handle the change event.
                }
            </text>)
        )
    )
```

## Next Steps

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

## See Also

* [Using the API of the ProgressBar for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/progressbar/api)
* [Server-Side API of the ProgressBar](https://www.telerik.com/aspnet-core-ui/documentation/api/progressbar)
* [Client-Side API of the ProgressBar](https://docs.telerik.com/kendo-ui/api/ui/progressbar)
