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

Toggle Button Group

5 Answers 642 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 27 Jul 2009, 04:15 PM
Is it possible to set up a group of toggle buttons such that only one button can be checked at a time?

5 Answers, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 28 Jul 2009, 09:10 AM
Hello Joseph,

Thank you for contacting us.

Please, find the attached sample project. It contains three RadToggleButtons and handles their Click events. Each time a RadToggleButton is clicked, the state of the rest of the RadToggleButtons are changed to Off. This implies that only one button at a time can have a ToggleState On. At the same time all of the buttons may have a ToggleState Off. I hope the sample project demonstrates the desired behavior. If you encounter any issues, do not hesitate to contact me back.

Sincerely yours,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Chris
Top achievements
Rank 1
Veteran
Iron
Iron
answered on 11 Nov 2015, 01:50 AM

I think the RadToggleButton could provide an official property to complete the job like that :

ToggleGroupID (Toggle the grouped button automatically), etc.

 Programmers would no need to write lots/duplicated code.

 

Best regards

 

Chris

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 11 Nov 2015, 03:12 PM
Hello Chris,

Thank you for writing.

Your feedback is greatly appreciated. We will consider it in the future improvement of the control if other customers have similar requests. For now, feel free to use the suggested approach by Boryana which can be easily adopted to any case.

Should you have further questions I would be glad to help.
 
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
answered on 27 Jul 2017, 02:11 PM
If you had made your RadRadioButton work like native winforms RadioButton (allow to change appearance), then this would work already.  From what I can tell, there is no way to change the appearance of a RadRadioButton to be either a check box or a button (Toggle). I agree with Chris, they should auto link, like the native radio buttons do.
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 01 Aug 2017, 05:29 AM
Hello Mark, 

Thank you for writing.  

RadToggleButton is not designed to behave like a native RadioButton. Your feedback is greatly appreciated. We will consider it in the future controls' improvement. Meanwhile, feel free to use the suggested approach by Boryana. 

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Joe
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Chris
Top achievements
Rank 1
Veteran
Iron
Iron
Dess | Tech Support Engineer, Principal
Telerik team
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
Share this question
or