Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » Radio Buttons in Group Box Collapse All
Subject Author Date
Helmut Wahrmann Dec 15, 2011 - 9:36 AM

I’m using 2 Elegant.Ui.RadioButton objects inside a Elegant.Ui.GroupBox

The first Button is checked as default. When selecting the second button, i would expect, like in standard Forms versions, the first button to be unchecked.
But both buttons are now checked.

Is this a known problem?

Technical Support Dec 19, 2011 - 6:06 AM

In order to achieve the expected behavior, you should set the RadioButton.RadioGroupName property to the same value for both instances inside your GroupBox as follows:

radioButton1.RadioGroupName = radioButton2.RadioGroupName = "RadioGroup1";

Helmut Wahrmann Dec 19, 2011 - 10:43 AM

Thanks. that solved it