issue with pulltorefresh

Hi,
I have a problem using pulltorefresh control together with sflistivew loadmore control.

I try to exlpain better thna I can: I have an observable collection correctly bound to the listview, and I have a loadmore command that is working as expected.
But...
when the pulltorefresh refreshing event is fired and i clear and fill again the collection I see the NEW data inside the list but the loadmore command is non more fired.
Checking your example and your how to here "https://help.syncfusion.com/xamarin/sflistview/pull-to-refresh" I noticed that in the refreshing event you are not "reloading" data you only add some item on collection top without clearing it.
This is not refreshing example, but load more "on top" example.

can you please check this issue?

thank you,
Federica


3 Replies

MK Muthu Kumaran Gnanavinayagam Syncfusion Team June 19, 2018 07:12 AM UTC

Hi Federica, 
 
We would like to let you know that you can use SfPullToRefresh control to perform any CRUD operations to refresh the data source of SfListView. We have provided some examples to showcase the updation of the data in the collection at runtime in our UG documentation. However you can also achieve your requirement by clearing and adding a new set of collection to SfListView in the Pulling event also. We assure you that we will certainly add a example for this usecase in the future. 
 
We have checked in our sample whether the LoadMore command is triggered after performing the Pulling operation and found that the LoadMore command gets triggered and the items are added in the list as expected. We have cleared and added a new collection of items in the Pulling event as mentioned. 
 
For your reference, we have attached the working sample and you can download it from the below link. 
 
 
If possible, can you please modify our sample to replicate the issue and revert us back with the replication procedure or video link?  
Can you please provide us the Model and ViewModel classes of your application which helps us to analyze the issue better at your end? 
Also can you please check the below details at your end? 
  • Please check whether the BindingContext of SfListView gets changed during the refreshing process.
  • Please check whether the issue occurs in both Manual and Auto LoadMore options.
  • Does the issue arises in all the 3 platforms?
 
Regards, 
G.Muthu kumaran. 



FL FEDERICA LAZZERI June 19, 2018 08:33 AM UTC

hi,
the example was helpful, i noticed that i was clearing end refilling the observable collection while it was bound to listview as itemsource, detaching it and reassigning after refill solved the problem.

thank you


MK Muthu Kumaran Gnanavinayagam Syncfusion Team June 20, 2018 04:19 AM UTC

Hi Federica, 
 
Thanks for the valuable response. 
 
Regards, 
G.Muthu kumaran. 


Loader.
Up arrow icon