# ColorGradient Events

This article describes the available events of the Telerik ColorGradient for Blazor.

* [FormatChanged](https://www.telerik.com/blazor-ui/documentation/components/colorgradient/events#formatchanged)
* [ValueChanged](https://www.telerik.com/blazor-ui/documentation/components/colorgradient/events#valuechanged)

## FormatChanged

The `FormatChanged` event fires when the user clicks on the toggle button, which changes the input format. The event can help you persist the selected `Format` at a later stage.

When using this event, make sure to update the component `Format` programmatically in the event handler.

> caption Handle the ColorGradient FormatChanged event

<demo metaUrl="client/colorgradient/events/format-changed/" height="470"></demo>

## ValueChanged

The `ValueChanged` event fires continuously while the user is dragging the component handles, or changing the textbox values.

When using this event, make sure to update the component `Value` programmatically in the event handler.

> caption Handle the ColorGradient ValueChanged event

<demo metaUrl="client/colorgradient/events/value-changed/" height="470"></demo>

## See Also

* [ColorGradient Overview](https://www.telerik.com/blazor-ui/documentation/components/colorgradient/overview)
* [ColorGradient Live Demo](https://demos.telerik.com/blazor-ui/colorgradient/overview)
