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

sflistview stuck on refreshing when get data from firebase

i'm using firebase database.net and sflistview to show the data, i use the .subscribe method and trying to add data if data on firebase changed.

when i try to add data on my mainModel(MVVM), sflistview seems stuck on refreshing data forever but my apps did not throw errors.

is there another way to add data to sflistview?


Attachment: Files_145ed890.7z

1 Reply

SP Subburaj Pandian Veluchamy Syncfusion Team May 27, 2019 08:28 AM

Hi Kent, 
Thank you for contacting Syncfusion support. 
We would like to inform you that you can set ItemsSource to SfListView after items added into collection asynchronously in separate thread. Please refer the following code, 
public class Page1 : ContentPage 
   private void processDataSubscribe(MvvmMessagePostThread dataMessage) 
            Device.BeginInvokeOnMainThread(async () => 
                await Task.Delay(200); 
                sflistView.ItemsSource = mainModel; 
If reported issue still occurs, can you please check whether items fetched from DB in ListView loaded event. If no, please share the model sample so that we could analyze the reported query better and provide appropriate solution at our end. 
Subburaj Pandian V       

Live Chat Icon For mobile
Up arrow icon