Listview does not refresh

Hello:
started today to use the listview of syncfusion, but I encountered a problem and my listview is a list of computers which are connected and disconnected to a server and in the list it marks those that are connected and disconnected, is changing every little time, the problem well in that the list is left to me as it is loaded when I start the app, with the normal listview if it is changing to me and renewing to me without me touching it. How can I make syncfusion do the same to me.
Thank you.

5 Replies

MK Muthu Kumaran Gnanavinayagam Syncfusion Team October 22, 2017 06:20 PM UTC

Hi Maria, 
 
We have checked with the reported issue “SfListView items does not refresh when items changed dynamically” from our side. Unfortunately, the reported issue does not replicate at our end. We have tried to reproduce the issue by changing the underlying collection dynamically at runtime using Timer class. We found that the items are refreshing properly at regular intervals without any issues. For your reference, we have attached the sample link below. 
 
 
Can you please check with the attached sample whether it meets your requirement? If not, Can you please check with the below mentioned details? 
  • Whether you are loading the underlying data as ObservableCollection to ItemsSource of SfListView. This helps to notify the control to refresh the view when the collection is changed at runtime.
  • Whether the SfListView does not refresh its view even after calling RefreshView method.
  • If possible, can you please replicate the issue in our sample or provide the sample which replicates the issue with the replication procedure or video link which helps us to analyze the issue better?
 
Please let us know if you require further assistance. 
 
Regards, 
G.Muthu Kumaran.  



MA Maria October 23, 2017 09:39 AM UTC

Hola:

Gracias you very much for your time has served me and corrected the problem.


MK Muthu Kumaran Gnanavinayagam Syncfusion Team October 24, 2017 04:05 AM UTC

Hi Maria, 
 
Thanks for the update. Please let us know if you require further assistance. 
 
Regards, 
G.Muthu Kumaran. 



BA Balakrishnan August 1, 2018 12:30 PM UTC

Hi, 
I am having same kind of problem with SfListView, In my list view I am using custom renderer to 
Linkify the text, It is working fine at the time of loading, If started scrolling then the linkify links are gone in android, it is working fine with IOS, 
I tested with listview(Default control) it is working fine. I think the problem is because of SfListView.
I have attached the sample project.

Thnaks
Balakrishnan.S


Attachment: CalendarSample_c6b84ed5.zip


GP Gnana Priya Namasivayam Syncfusion Team August 1, 2018 04:27 PM UTC

Hi Balakrishnan, 
  
Sorry for the inconvenience. 
  
We have checked the reported query from our end and we would like to know that we Reusing the listviewitem while scrolling. You have updated value only in  OnElementChanged method will only hit when SfListView loaded initially. When items gets reused while scrolling, you won’t get any notification to OnElementChanged  method. So we have used OnElementPropertyChanged method to set a label color in android renderer to get notified while scrolling the items . 
  
We have attached the modified sample for your reference and please find the below sample from the link. 
  
  
Please let us know if you require any further assistance. 
  
Regards, 
Gnana Priya N 
 

Loader.
Up arrow icon