RadRadiobutton default setting

1 Answer 93 Views
Buttons, RadioButton, CheckBox, etc
Carl
Top achievements
Rank 1
Iron
Iron
Iron
Carl asked on 24 Oct 2023, 06:27 PM

I have a Form with 4 group boxes each containing 2 radio buttons - Yes and No - obviously each set mutually exclusive. The IsChecked properties of each are bound to boolean values. All 8 properties are set to false. However, when the form displays, the first Yes button is checked. Even when I unbind them and explicitly set them all to false, the first option is set t true.

s there any way for all buttons to be set to false?

Thanks

Carl

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 25 Oct 2023, 10:12 AM

Hello, Carl,

By default when several RadRadioButtons are part of the same control group only one radio button can be checked at a given time. Then, if you go and check another radio button from the same group the previous button becomes unchecked automatically.  This is core implementation that is available out of the box.

In R3 2023 release we have introduced a new AutoCheck property which indicates whether the IsChecked value and the appearance of the control automatically change when the control is clicked. If the AutoCheck property is set to false, a group of RadioButton controls will not act as a mutually exclusive group and the IsChecked property should be updated in code.

I hope this helps. If you have any further questions, do not hesitate to ask.

Regards,
Nadya
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Carl
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or