# SegmentedControl Selected Item

The SegmentedControl allows you to control which button is selected through the [`selected`](https://www.telerik.com/kendo-angular-ui-develop/components/buttons/api/segmentedcontrolcomponent#selected) property. The property accepts a zero-based index that points to an item in the [`items`](https://www.telerik.com/kendo-angular-ui-develop/components/buttons/api/segmentedcontrolcomponent#items) array.

## Controlling the Value

To keep the selected item in sync with your component state, use two-way binding with `[(selected)]`. Alternatively, bind `selected` and handle `selectedChange`, which emits the index of the newly selected item. Selecting the already selected item does not emit the event.

```html
<kendo-segmented-control [items]="items" [(selected)]="selectedIndex"></kendo-segmented-control>
```

The following example uses two-way binding to update the text alignment of a paragraph when users select an item.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/buttons/segmentedcontrol/selected/source.txt)

## Default Value

By default, the first item (index `0`) is selected. To choose a different initial selection, set the `selected` property to the index of the desired item. The component reads the value and manages later selections internally.

```html
<kendo-segmented-control [items]="items" [selected]="1"></kendo-segmented-control>
```

The following example selects the second item initially.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/buttons/segmentedcontrol/default-value/source.txt)

## Suggested Links

* [Data Binding](https://www.telerik.com/kendo-angular-ui-develop/components/buttons/segmentedcontrol/items)
* [Events](https://www.telerik.com/kendo-angular-ui-develop/components/buttons/segmentedcontrol/events)
* [API Reference of the SegmentedControl](https://www.telerik.com/kendo-angular-ui-develop/components/buttons/api/segmentedcontrolcomponent)
