We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Binding Radio Button Group

Thread ID:

Created:

Updated:

Platform:

Replies:

141246 Dec 1,2018 05:22 AM UTC Oct 19,2020 09:52 AM UTC Xamarin.Forms 3
loading
Tags: SfRadioButton
Albert K
Asked On December 1, 2018 05:22 AM UTC

How do I bind to Radion Button Group to  a viewmodel ?

  <syncfusion:SfRadioGroup Orientation="Horizontal"  VerticalOptions="End"
                                             Grid.Row="1" Grid.Column="1" >
                        <syncfusion:SfRadioButton x:Name="male" Text="Male"/>
                        <syncfusion:SfRadioButton x:Name="female" Text="Female"/>
    </syncfusion:SfRadioGroup>

Paul Anderson S [Syncfusion]
Replied On December 3, 2018 11:39 AM UTC

Hi Albert K, 
 
Greetings from Syncfusion Support. 
 
SfRadioGroup doesn’t have ViewModel binding support. For your knowledge, we have inherited SfRadioGroup from StackLayout. We have used SfRadioGroup to identify the SfRadioButton groups and added validation to check the IsChecked property of each radio button among the group so that only one RadioButton can be set as true. 
 
Regards, 
Paul Anderson

Lorenz Becislao
Replied On October 18, 2020 04:59 PM UTC

Hi do you have a demo on how to achieve "We have used SfRadioGroup to identify the SfRadioButton groups and added validation to check the IsChecked property of each radio button among the group so that only one RadioButton can be set as true"

Yuvaraj Palanisamy [Syncfusion]
Replied On October 19, 2020 09:52 AM UTC

Hi Lorenz Becislao,  
  
Please find the demo link for grouping the list of SfRadioButton inside the SfRadioGroup to achieve this single selection among the list of buttons from the below link  
  
   
Please find the following link for more details.   
   
   
   
   
Please let us know if you need any concern.  
 
Regards, 
Yuvaraj 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon