# ButtonGroup Selection

The ButtonGroup lets you select one or more of its `ButtonGroupToggleButton` instances depending on the `SelectionMode` setting:

* [Single](https://www.telerik.com/blazor-ui/documentation/components/buttongroup/selection#single-selection) (default) - the buttons act like radio buttons
* [Multiple](https://www.telerik.com/blazor-ui/documentation/components/buttongroup/selection#multiple-selection) - the buttons act like checkboxes

You can control whether a button is selected (it is in its `Primary` state) through its `Selected` parameter. It offers two-way binding and an [SelectedChanged event](https://www.telerik.com/blazor-ui/documentation/components/buttongroup/events) so you can respond to the user actions.

## Single Selection

When you click a button, it becomes selected. When you click another button, the first one will become deselected and the second one will be selected.

> caption Single Selection in the ButtonGroup

![Single selection in the button group](https://www.telerik.com/blazor-ui/documentation/assets/1a4faf34d6e861a99d8dc4d429e6d34a/buttongroup-single-selection.gif)

<demo metaUrl="client/buttongroup/selection/single/" height="300"></demo>

## Multiple Selection

When you click a button, it becomes selected. When you click another button, the first one retains its selected state, and the second one will also be selected. Clicking on a selected button will deselect it.

> caption Multiple Selection in the ButtonGroup

![Multiple selection in the button group](https://www.telerik.com/blazor-ui/documentation/assets/9553852a63b0e6de21934a321f51ee5f/buttongroup-multiple-selection.gif)

<demo metaUrl="client/buttongroup/selection/multiple/" height="300"></demo>

## See Also

* [ButtonGroup Overview](https://www.telerik.com/blazor-ui/documentation/components/buttongroup/overview)
* [ButtonGroup Events](https://www.telerik.com/blazor-ui/documentation/components/buttongroup/events)
* [Live Demo: ButtonGroup Selection](https://demos.telerik.com/blazor-ui/buttongroup/selection)
