SfListView Swipe Action is not reset.

Hi,

I have a ListView configured as in the attached file. When I do a swipe-delete action, the swipe is not reset. 

This is after the swipe action is complete:

 
And this is what is left after pressing "Cancel" or "Ok" on the Pop-Up (SfPopUpLayout):


I want to reset the Swipe Action. How do I achieve this?

Please note that I am using MVVM with commands.

Thanks, Daniel 


Attachment: SyncFusion_ListView_5882f87a.zip

1 Reply

SS SaiGanesh Sakthivel Syncfusion Team April 27, 2020 12:25 PM UTC

Hi Daniel, 
 
Thank you for contacting Syncfusion support. 
 
We have checked the reported query “SListView swipe is not resetting” from our end. We would like to inform you that you can achieved the requirement by resetting the SwipeOffset into zero inside the SwipeEnded event. Please refer to the following code snippet for your reference. 
 
Code Snippet: 
private void listView_SwipeEnded(object sender, SwipeEndedEventArgs e) 
{ 
    if (e.SwipeOffset > 70) 
        e.SwipeOffset = 0; 
} 
 
Please refer to the following UG documentation link for your reference 
 
We hope this helps. Please let us know if you need any further assistance. 
 
Regards, 
SaiGanesh Sakthivel

Loader.
Up arrow icon