Bug 29209 - ListView PullToRefresh not working
Summary: ListView PullToRefresh not working
Status: RESOLVED ANSWERED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.4.1
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Eric Maupin
URL:
Depends on:
Blocks:
 
Reported: 2015-04-17 14:01 UTC by Anubhav Ranjan
Modified: 2015-06-19 17:38 UTC (History)
6 users (show)

Tags: AC
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Anubhav Ranjan 2015-04-17 14:01:10 UTC
One of our customers is facing issues with PullToRefresh in ListView

#Description:
==========
Can you let me know what is wrong with this sample? For some reason the list
never refreshes and the form refresh controls stays forever. I thought with
the latest version, I do not need to write any addition custom renderer.
This is the only class in the shared project and I created a Xamarin forms
shared solution using 1.4.1.6349. 

#Sample:
========
https://dl.dropboxusercontent.com/u/30949500/Xamarin%20Samples/ListViewRefresh.zip
Comment 3 Eric Maupin 2015-06-19 17:38:29 UTC
The sample itself is incorrect. When the user performs the refresh gesture on the device, IsRefreshing will be set to true automatically, and since this is a TwoWay binding by default, it's setting IsBusy to true right away. This means that when the command executes, IsBusy is already true, so it returns and as a result can't be set back to false. Simply remove the IsBusy check and and it works as expected.