# Events

This article explains the events available in the Telerik Color Palette for Blazor:

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

## OnChange

The `OnChange` event represents a user action - confirmation of the current value. It fires when the user clicks, taps or presses `Enter` to select a color, or when the component loses focus. It does not prevent you from using two-way binding for the `Value`.

> caption Handle OnChange and use two-way binding for the Value

<demo metaUrl="client/colorpalette/events/on-change/" height="420"></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`.

> tip The `OnChange` event is a custom event and does not interfere with bindings, so you can use it together with models and forms.

## ValueChanged

The `ValueChanged` event fires upon every change (selection of color) in the component. Its main purpose is to provide two-way biding of the `Value`.

> caption Handle ValueChanged

<demo metaUrl="client/colorpalette/events/value-changed/" height="420"></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`.

## OnBlur

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

> caption Handle the OnBlur event

<demo metaUrl="client/colorpalette/events/on-blur/" height="420"></demo>

## See Also

* [ValueChanged and Validation](https://www.telerik.com/blazor-ui/documentation/knowledge-base/value-changed-validation-model)
* [Fire OnChange Only Once](https://www.telerik.com/blazor-ui/documentation/knowledge-base/common-onchange-fires-twice)
