# Events

This article showcases the available events in the Telerik Switch component:

* [ValueChanged](https://www.telerik.com/blazor-ui/documentation/components/switch/events#valuechanged)
* [OnChange](https://www.telerik.com/blazor-ui/documentation/components/switch/events#onchange)
* [OnBlur](https://www.telerik.com/blazor-ui/documentation/components/switch/events#onblur)

## ValueChanged

The `ValueChanged` event fires every time the `Value` parameter changes.

> caption Handle ValueChanged

<demo metaUrl="client/switch/events/value-changed/" height="250"></demo>

> tip The event is an `EventCallback`. It can be synchronous and return `void`, or asynchronous and return `async Task`. Do not use `async void`.

> note The lambda expression in the handler is required by the framework: <https://github.com/aspnet/AspNetCore/issues/12226>.

## OnChange

The `OnChange` event fires every time the `Value` parameter changes. The key difference between `ValueChanged` is that `OnChange` does not prevent two-way data binding (using the `@bind-Value` syntax).

> caption Handle OnChange

<demo metaUrl="client/switch/events/on-change/" height="220"></demo>

## OnBlur

The `OnBlur` event fires when the component loses focus.

> caption Handle the OnBlur event

<demo metaUrl="client/switch/events/on-blur/" height="220"></demo>
