This is a migrated thread and some comments may be shown as answers.

Deselect ButtonGroup

3 Answers 744 Views
ButtonGroup
This is a migrated thread and some comments may be shown as answers.
Marlon
Top achievements
Rank 1
Marlon asked on 21 Oct 2013, 08:19 PM
I have a buttongroup inside a modal view and I'd like to reset the button group's selection each time the modal view is opened. What's the best way to do this? I can't seem to find a way to clear the selection.

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 23 Oct 2013, 07:42 AM
Hi Marlon,

There is no built in way to reset the selection of the button group. However you can remove the styling that highlights the button and set the selectedIndex to undefined, which will do practically the same. Please check the following example:

http://jsbin.com/eVepOPa/1/edit
 

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Steven
Top achievements
Rank 1
answered on 12 Dec 2013, 11:06 PM

I am playing around with it and here is something I came up with still a work in progress.
0
Kiril Nikolov
Telerik team
answered on 14 Dec 2013, 08:30 AM
Hi Steven,

Thank you very much for sharing this with us.

I am sure it will be helpful for people with a similar problems.

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ButtonGroup
Asked by
Marlon
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Steven
Top achievements
Rank 1
Share this question
or