# Selection

You can restrict the number of Buttons that can be selected by using the `.Selection()` property of each Button within the ButtonGroup.

The property can be configured for a `single` or `multiple` selection.

The following example demonstrates how to use the `.Selection()` configuration.

```Razor HtmlHelper
    @(Html.Kendo().ButtonGroup()
        .Name("select-period")
        .Selection("multiple")
        .Items(t =>
            {
                    t.Add().Text("Month");
                    t.Add().Text("Quarter");
                    t.Add().Text("Year");
            }))
```

```Razor TagHelper
    <kendo-buttongroup name="select-period"
                    selection="multiple">
        <buttongroup-items>
            <item text="Month"></item>
            <item text="Quarter"></item>
            <item text="Year"></item>
        </buttongroup-items>
    </kendo-buttongroup>
```

## See Also

* [Selection by the Telerik UI ButtonGroup HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/buttongroup/selection)
* [Server-Side API of the ButtonGroup for ASP.NET Core](https://www.telerik.com/aspnet-core-ui/documentation/api/buttongroup)
