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

Listview Swipe allowing only for some list of items not for all list items

Hi All

We need to implement listview swipe only for some of list items not for all list items based on status of list items.

Thank You


1 Reply

LN Lakshmi Natarajan Syncfusion Team January 7, 2020 06:05 AM UTC

Hi Web Synergies, 
  
You can handle SwipeStarted event of ListView and cancel swiping for the items based on ItemData property of event argument. 
 
  
The SwipeStarted event provides the following properties in their arguments: 
 
·        ItemIndex: Defines the swiping item index. 
·        ItemData: Defines the underlying data associated with the swiped item. as its arguments. 
·        SwipeDirection: Defines the swipe direction of the swiped item. 
 
  
Thanks, 
Sivakumar 


Loader.
Live Chat Icon For mobile
Up arrow icon