SFListview not remembering previous selections

Hey guys, so I have this listview full of options and upon selecting these options users are able to store data to a form collector page. My issue is that I can't seem to find any control which can help this page to 'remember' the users previous selections. Multiselection and everything else works excellent but I am looking for a way in which when navigating from my form collector page to the options listview page, the previous selected options are already selected so the user knows what she/he has selected before.

1 Reply

MK Muthu Kumaran Gnanavinayagam Syncfusion Team February 5, 2018 12:17 PM UTC

Hi Laurence, 
 
Thank you for contacting Syncfusion Support. 
 
We have checked the reported query “Need to store the SelectedItems while navigating from the SfListView page to DataForm page” from our side. We would like to let you know that while navigating across pages, the SelectedItems in SfListView will not be disposed until new instance of SfListView is created for that particular page. We have created simple sample which shows the behavior of SfListView while navigating across pages. In our sample, we have selected multiple items and navigated to a new page where the data selected from the list will be displayed in an entry box. While returning back to SfListView page the selected items remains intact (if the SfListView is not disposed in the OnDisappearing override method of that page). 
 
For your reference, we have attached our sample and you can download it from the below location. 
 
 
If the above solution does not resolve the reported query, Could you please share the below details which helps us to analyze further? 
  • Could you please share the template in which the SfListView is loaded and navigated to?
  • If the reported issue occurs in our sample also, please share the details of the tested device?
  • Could you please check whether you are disposing the SfListView items or creating a new instance while navigating across pages?
 
Please let us know if you require further assistance, 
 
Regards, 
G.Muthu kumaran. 
 


Loader.
Up arrow icon