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

radradiobutton group name

3 Answers 1066 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
raluca
Top achievements
Rank 1
raluca asked on 15 Jun 2009, 08:54 AM
hello,
is there a way to group radio buttons to make them exclusive. for example: i have 4 radio buttons on a form. i would like to group them two by two, so that in group of two the buttons cannot be checked at the same time, but there is no problem for two buttons from different groups to be checked at the same time.
thanks.

3 Answers, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 15 Jun 2009, 01:21 PM
Hi raluca,

Thank you for contacting us. Please, refer to this article. The tutorial demonstrates how you can create two groups of radio buttons that act independently of one another. Please, note that only one button can be selected in a group.

I hope this helps. If you have further questions, do not hesitate to contact us back.

Best wishes,
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
BENOIT CHEVALIER
Top achievements
Rank 1
answered on 23 Jun 2010, 09:40 AM
Hello,

I've a similar problem with the radRadioButton:

I have 2 RadioButton in different userControls and I don't find a way to group them.

The article show how you can group a set of radioButton in a common panel but not if there are in different "area".

Can you please show me if there is a way to group RadioButton when they don't have the same "parent" control?

Thanks!
0
Boryana
Telerik team
answered on 29 Jun 2010, 05:08 PM
Hi BENOIT CHEVALIER,

RadRadioButton was designed to mimic the behavior of the standard Windows Forms RadioButton. For this reason there is not an easy way to group RadRadioButtons if they have different parent controls. 

However, you might be able to achieve such a behavior through handling the ToggleStateChanged event of the RadRadioButtons. You should insert custom logic that resets the ToggleState property of the buttons in all other groups.

Let me know if I can assist you further.

All the best,
Boryana
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
raluca
Top achievements
Rank 1
Answers by
Boryana
Telerik team
BENOIT CHEVALIER
Top achievements
Rank 1
Share this question
or