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.

SfDataGrid PullToRefreshCommand doesnt work setting into XAML

Thread ID:

Created:

Updated:

Platform:

Replies:

128900 Feb 14,2017 07:12 PM Feb 16,2017 04:32 AM Xamarin.Forms 3
loading
Tags: SfDataGrid
Emil
Asked On February 14, 2017 07:12 PM


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

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

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 01:51 AM

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. 
 
Regards, 
Ashok  


Emil
Replied On February 15, 2017 06:53 AM

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 04:32 AM

Hi Emil, 
 
Thanks for your reply. Please let us know if you require further assistance on this. 
 
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.

;