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.
Unfortunately, activation email could not send to your email. Please try again.

Feature Request: ViewModel Command Support fo SfPullToRefresh

Thread ID:

Created:

Updated:

Platform:

Replies:

131961 Aug 5,2017 03:54 AM Nov 23,2017 07:37 AM Xamarin.Forms 3
loading
Tags: SfPullToRefresh
Malcolm Jack
Asked On August 5, 2017 03:54 AM

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

Vimal Prabhu Manohkaran [Syncfusion]
Replied On August 7, 2017 08:27 AM

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 
 


Sean Greenawalt
Replied On November 21, 2017 11:36 PM

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.

Ashok N [Syncfusion]
Replied On November 23, 2017 07:37 AM

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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;