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

Enable Swipe (right/left) dynamically based on the status of listview item

Thread ID:





144929 May 29,2019 09:08 AM UTC May 30,2019 11:41 AM UTC Xamarin.Forms 1
Tags: SfListView
Sairam B
Asked On May 29, 2019 09:08 AM UTC

Hi Team, 

We have a requirement to enable the swipe to delete based on the status of each listview item, if the status of one item = New, we should be able to enable the swipe and if the status = closed, we should not enable the swipe. 

Could you please help me on this ?


Dinesh Babu Yadav [Syncfusion]
Replied On May 30, 2019 11:41 AM UTC

Hi Sairam, 
Thank you for contacting Syncfusion support. 
You can achieve the reported requirement by using Cancel args of SwipeStarted event. Based on the Status, return boolean value to start the swiping for the particular item. 
Code Example [C#]: 
private void ListView_SwipeStarted(object sender, SwipeStartedEventArgs e) 
   var itemdata = e.ItemData as ListViewInboxInfo; 
   e.Cancel = itemdata.Status; 
For your reference, we have prepared the sample and you can download it from the below link. 
Please let us know if you require further assistance. 
Dinesh Babu Yadav 


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