Running Stopwatches in ListView

Hi experts,
I'm using your very good ListView to make a list of athletes performing a competition.
The data is coming out of a sqlite database and I can group the athletes depending on their age. 
I can create new athletes and edit them. This all is working very good.
At the ListView for the race every list item (every athlete) has a stopwatch.
There I want to show the elapsed time.
How can I refresh the view to show the current value of the stopwatch?

Using INotifyPropertyChanged for my ViewModel is difficult because the setter and getters are in my "normal" model.

I tried to use Device.BeginInvokeOnMainThread  but in order to work with this I have then to walk through the items in the ListView with foreach.
Unfortunately this does not work with SFListView.

Is there any possibility to walk through the items or is there another way to solve my problem?

TIA
Stephan

1 Reply

MK Muthu Kumaran Gnanavinayagam Syncfusion Team January 8, 2018 02:33 PM UTC

Hi Stephan, 
 
We have checked the reported query “SfListView items does not refresh to show current value of stopwatch” from our side. We would like to inform you that the ItemData of SfListView items will be refreshed only when the underlying collection bound to the ItemsSource property of SfListView is notified. So it is mandatory to implement INotifyPropertyChanged in your ViewModel to refresh the SfListView.  
 
Can you please provide us more details regarding the usage of your application which helps us to analyze and resolve the reported query at our end? 
If possible, can you please share the working sample with the replication procedure or video link. 
 
Regards, 
G.Muthu kumaran. 


Loader.
Up arrow icon