I have two SfListViews in two different tabs of a Tabbed Page, one contains a list of PDFs available for download (Add PDFs list) and the other contains the downloaded PDFs (Downloaded PDFs list). The Add PDFs list has a data template that contains the name of the PDF and a download icon (bound to IsNotDownloaded). When the download icon is tapped, the item is added to the Downloaded PDFs list and the download icon disappears. All of this works fine.
When I delete an item from the Downloaded PDFs list, I refresh the property (IsNotDownloaded) that is bound to the download icon in the Add PDFs list. When I step through the code, the IsNotDownloaded property is updated correctly (NotifyPropertyChanged is working), but the changes aren't reflected on the page until I back out of the page and re-enter. I've tried a few things, including intercepting the OnAppearing() method of the Add PDFs page and using listView.RefreshView() and listView.RefreshListViewItem(), but nothing is working.
Please let me know if you need any more information.
JNJayaleshwari N Syncfusion Team January 25, 2019 01:58 AM
Thanks for contacting Syncfusion Support.
We have checked the reported query “Item in DataTemplate of SfListView not refreshing” from our side. We have prepared sample based on the provided information by loading SfListView in tabbed pages and defining ItemTemplate with download icon and bound with IsNotDownloaded property which is working fine as your expectation.
We have attached tested sample (126.96.36.199) for your reference and you can download the same from the following location.
Can you please check with attached sample whether the sample meets your requirement.? If not we would request you to share the xaml and viewmodel code snippet you have used in your application to reproduce the reported scenario.