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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfListView or SfDataGrid?

Thread ID:





145689 Jul 3,2019 07:16 PM UTC Jul 6,2019 12:44 PM UTC Xamarin.Forms 5
Tags: SfDataGrid
John Livermore
Asked On July 3, 2019 07:16 PM UTC

We have a UI pattern where we display lists of things, and those things might need to be deleted (Xamarin Forms UWP app).  We would like the ability to add a radiobutton where the user would select a row by clicking the radiobutton in the row, and then hit a delete button to delete that row.

Using Syncfusion controls, what is a recommended way to go here?  The control must allow the ability to click/select the row as well as just selecting the radio button (without invoking the selection on the row).  Would 
SfListView or SfDataGrid work here (or something else?)?  Anything we need to keep in mind to achieve the functionality we are looking for here?

Farjana Parveen Ayubb [Syncfusion]
Replied On July 4, 2019 09:48 AM UTC

Hi John, 
Thank you for contacting Syncfusion support. 
We have checked your query. Based on your requirement if you have single list of items you can achieve your requirement using SfListView. 
And instead if you have multiple columns you can achieve your requirement using SfDataGrid control. We have prepared sample in both SfListView and in SfDataGrid. You can prefer based on your requirement. 
Farjana Parveen A 

John Livermore
Replied On July 5, 2019 09:07 AM UTC

Thanks for the examples.  I see you used a toggle switch for the row selector.  Can you show me an example with a radiobutton instead please?

Subburaj Pandian Veluchamy [Syncfusion]
Replied On July 5, 2019 01:56 PM UTC

Hi John, 
Thank you for the update. 
Xamarin Forms does not have default support for RadioButton control. So, as per your requirement, we have modified the samples with SfRadioButtoncontrol in the ItemTemplate and GridTemplateColumn. Please find the sample from the below link. 
Please refer the following documentation link for getting started with SfRadioButton control. 
Subburaj Pandian V  

John Livermore
Replied On July 5, 2019 03:14 PM UTC

Thanks.  I had actually created a version of this on my own, and your sample has the same issue as mine.  Namely, when you click the radio button, previous ones clicked keep their "checked" state.  How can the sample be modified so only one radio button is "checked" at a time?

Subburaj Pandian Veluchamy [Syncfusion]
Replied On July 6, 2019 12:44 PM UTC

Hi John, 
Thank you for the update. 
As per your requirement, we have modified the sample in which only one radio button is checked at a time for the items. Please find the sample from the below link. 
Subburaj Pandian V  


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