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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfDataGrid PullToRefreshCommand doesnt work setting into XAML

Thread ID:





128900 Feb 15,2017 12:12 AM UTC Feb 16,2017 09:32 AM UTC Xamarin.Forms 3
Tags: SfDataGrid
Asked On February 15, 2017 12:12 AM UTC

When I defined PullToRefreshCommand in the xaml, It does nothing for me

<sfgrid:SfDataGrid  ScrollingMode="Pixel"  x:Name="grid" AllowPullToRefresh="True"

I just into the constructor of my page  as below and it works. Is it a bug or I do something wrong?

    grid.AllowPullToRefresh = true;
      grid.PullToRefreshCommand = new Command(ExecutePullToRefreshCommand);

Ashok N [Syncfusion]
Replied On February 15, 2017 06:51 AM UTC

Hi Emil, 
Thanks for contacting Syncfusion support. 
We have checked your query and SfDataGrid.PullToRefreshCommand is ICommand type. For ICommand type we have to set the method call using Command class (Same like Button.Command). We request you to set the ExecutePullToRefreshCommand method from code behind for enable the PullToRefresh in SfDataGrid. 

Replied On February 15, 2017 11:53 AM UTC

Ok. I tried today using a command binding in my viewmodel with Xaml and binding works fine. thanks

Ashok N [Syncfusion]
Replied On February 16, 2017 09:32 AM UTC

Hi Emil, 
Thanks for your reply. Please let us know if you require further assistance on this. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon