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

radRadioButton - Binding IsChecked

3 Answers 364 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Roy
Top achievements
Rank 1
Roy asked on 02 Sep 2008, 06:04 AM
Hi,

I have a custom class which is bindable. Lets assume I got the following two properties
public bool X
{
    get {...}
    set {...}
}

public bool Y
{
    get {...}
    set {...}
}

The X and Y properties are mutually exclusive (i.e. X && Y is always false and X || Y is always true)

I have a user control that contains two different groups. In each group I have a radio button (from the Rad UI Controls).
The constructor of the user control binds the property "IsChecked" of the two radio buttons to the property X and to the property Y respectively. For some reason, whenever a radio button is pressed, the setter of the property is not called. This seems to me as a bug since when I put two radio buttons from the .NET library (the regular radio buttons) they work fine.

I was trying to find a utility to fill a bug report but couldn't find it.

Please let me know if this is a known issue.

Thanks

3 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 04 Sep 2008, 01:17 PM
Hi Roy,

Thank you for reporting this issue.

I have reproduced the issue successfully. We will address it in one of our next versions.

For the time being, I would suggest inserting the logic that changes the values of the properties in the RadRadioButton's ToggleStateChanged event handler.

Your Telerik points have been updated.

 
Greetings,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Deborah
Top achievements
Rank 1
answered on 02 Nov 2010, 05:17 PM
Was this ever resolved?

I am trying to use binding to the RadioButton and it seems that IsChecked is depricated. Since my business objects are used in many places, I need to keep my property as a boolean, not a ToogleState.

What is the best way to bind to the RadRadioButtons?

Thanks!
0
Peter
Telerik team
answered on 10 Nov 2010, 03:55 PM
Hello Deborah,

Thank you for writing.

We have removed the Obsolete attribute from the IsChecked property in Q3 2010 and now you can use it without any concerns.

I hope this helps.

Best wishes,

Peter
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
Roy
Top achievements
Rank 1
Answers by
Peter
Telerik team
Deborah
Top achievements
Rank 1
Share this question
or