Completed
Last Updated: 21 Jun 2021 14:25 by ADMIN
John
Created on: 13 Sep 2018 01:50
Category: ButtonGroup
Type: Feature Request
3
Setting the initial state of a ButtonGroup!!
I need to set the initial state of a button group!  If I am using a buttongroup to represent a value, then how do I set the initial state?!  

How was this not thought of??
1 comment
ADMIN
Martin Bechev
Posted on: 21 Jun 2021 14:25

Hi John,

The developer can set an initially selected button by setting its selected property to true:

        <kendo-buttongroup>
          <button kendoButton [toggleable]="true" icon="bold" [selected]="true"></button>
          <button kendoButton [toggleable]="true" icon="italic"></button>
          <button kendoButton [toggleable]="true" icon="underline"></button>
        </kendo-buttongroup>

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.