SegmentedControl Selected Item
The SegmentedControl allows you to control which button is selected through the selected property. The property accepts a zero-based index that points to an item in the 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.
<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.
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.
<kendo-segmented-control [items]="items" [selected]="1"></kendo-segmented-control>
The following example selects the second item initially.