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

check only one checkbox

1 Answer 329 Views
CheckBox
This is a migrated thread and some comments may be shown as answers.
Abdou
Top achievements
Rank 1
Abdou asked on 04 Apr 2019, 01:30 PM

Hallo,

 

i have a stack with 2 Checkboxes YES/NO i want only check one Checbox.

i use mvvm i can not handle the CheckedChange event to uncheck the other Checkbox if Checked.

 

may be using Commands or something can u give me please a example?

Thanks

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 04 Apr 2019, 03:34 PM
Hi Abdou,

In this case you could either CheckBoxUserCommmand with Id set to "IsCheckedChanged"  or bind IsChecked property of the CheckBox to a boolean property in the ViewModel.  For more details on the commands usage, please check our documentation here: CheckBox Commands.

We also have a feature request for providing mutually exclusive checkboxes, you could cast your vote and track its status in our public feedback portal at the link below:
https://feedback.telerik.com/xamarin/1366380-checkbox-exclusive-selection

I hope I was of help. Let me know if any additional questions arise.

Regards,
Yana
Progress 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
Tags
CheckBox
Asked by
Abdou
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or