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
close icon

SfListView - Clear selected item from code behind

How can I clear the selected item in the listview from the code behind?

3 Replies

DB Dinesh Babu Yadav Syncfusion Team August 12, 2019 09:28 AM UTC

Hi John, 
 
Thank you for contacting Syncfusion support. 
 
You can clear the selected item either by defining the SelectedItem as null or clearing the SelectedItems. Please refer the following UG documentation link for more reference. 
 
 
Please let us know if you require further assistance. 
 
Regards, 
Dinesh Babu Yadav 



RO Robert June 7, 2021 03:16 PM UTC

That's a nice function! Though how to do it with MVVM? Is there a possibilty?

Thx and best regards, Robert


KK Karthikraja Kalaimani Syncfusion Team June 8, 2021 11:05 AM UTC

Hi Robert,

We have prepared sample in MVVM architecture. Please download the sample from the below link. 

Sample link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/ListViewSelection-1826876180.zip

Regards,
Karthik Raja

Loader.
Live Chat Icon For mobile
Up arrow icon