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
close icon

Feature Request: ViewModel Command Support fo SfPullToRefresh

It would be great if there was a RefreshCommand property on the SfPullToRefresh to support MVVM commands.
Typically refresh UI is tied to a fetch command on the viewmodel.
Currently have to work around this with a behavior (attached) - although it's untested since SfListView is not supported yet for SfPullToRefresh

Attachment: SfPullToRefreshCommandBehavior_8b5b734e.zip

6 Replies

VP Vimal Prabhu Manohkaran Syncfusion Team August 7, 2017 12:27 PM UTC

Hi Malcolm, 
 
Thanks for contacting Syncfusion Support.

 
We have considered your requirement “ViewModel Command Support fo SfPullToRefresh” as a new feature and added it to our feature management system. It will be available in any of our upcoming releases. Please check our website periodically to know about the features that are implemented.

 
Also we are glad to announce that our Essential Studio Volume 3, 2017 (Version 15.3.0.26) is rolled out with the support for  SfPullToRefresh integration into the SfListView control’ and is available for download under the following link. 
 
                                              
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 

You can upgrade to our latest version of nugets and run the sample from the below link to know how to integrate the SfPullToRefresh control inside the SfListView control for reference.

Sample Link : http://www.syncfusion.com/downloads/support/forum/131961/ze/PullToRefresh-1775855099

 
Regards, 
Vimal Prabhu 
 



SG Sean Greenawalt November 22, 2017 04:36 AM UTC

I am attempting to get the SfPullToRefresh work in a SfListView through MVVM. I am using essentially the same behavior as Malcolm. Upon using the behavior, the property never gets set. Here is a snippet from my xaml that contains the binding:

<xForms:SfPullToRefresh.Behaviors>
<ui:SfPullToRefreshCommandBehavior RefreshCommand="{Binding RefreshCommand}" />
xForms:SfPullToRefresh.Behaviors>

How can I set this up to make the binding work correctly?

Edit: Fixed the issue using BehaviorPack library to call commands from events.


AN Ashok N Syncfusion Team November 23, 2017 12:37 PM UTC

Hi Sean, 
 
We are sorry about the inconvenience caused. 
 
Still we didn’t provide the support for ViewModel.RefreshCommand in our SfPullToRefresh control. This feature will be available in any of our upcoming releases(tentatively). We will update you once provide this support. Also please check our website periodically to know about the features that are implemented. 
 
Regards, 
Ashok 



AA Ali Alizadeh December 2, 2019 02:43 AM UTC

Any update on this?


FP Farjana Parveen Ayubb Syncfusion Team December 2, 2019 12:55 PM UTC

Hi Malcolm, 
 
Thank you for your update. 
 
We have considered your requirement “Refresh command and command parameter support for PullToRefresh” in Xamarin.Forms and logged feature request for the same. We will include the feature in our upcoming 2020 Volume 1 release which is estimated to be available on March 2020.   
 
 
We appreciate your patience until then. 
 
Regards, 
Farjana Parveen A 



FP Farjana Parveen Ayubb Syncfusion Team February 12, 2020 11:11 AM UTC

Hi Malcolm 
 
Thank you for your patience.   
     
We have implemented and included the feature of “Refresh command and command parameter support for PullToRefresh” in our Weekly NuGet package update version 17.4.0.40 which is available for download (nuget.org) and its available from 17.4.0.40 Syncfusion version.  
  
Please refer the below UG for more information  
 
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.  
  
Regards,
Farjana Parveen A    
 


Loader.
Live Chat Icon For mobile
Up arrow icon