SfPullToRefresh is not displayed in iOS project

Hi,

I installed SfPullToRefresh to my Xamarin Forms project. It works perfectly fine in Android but NOT in iOS. (Display blank instead of SfListView as its content)
I already added "SfPullToRefreshRenderer.Init();" in my AppDelegate (FinishedLaunching method with others like SfListView/SfTabView which also work fine in iOS)
I take a look in iOS project references and it has all required libraries (https://help.syncfusion.com/xamarin/sfpulltorefresh/getting-started#sfpulltorefresh-for-xamarinforms) due to my SfTabView is still working fine. I am using Xamarin Forms version 3.0.0.482510. and SfPullToRefresh version 16.2.0.41

Kindly request to investigate this issue , Thanks

4 Replies

SK Shivagurunathan Kamalakannan Syncfusion Team June 27, 2018 01:48 PM UTC

Hi Passakorn, 
 
Thanks for contacting Syncfusion Support, 
 
We have checked your query. You have added SfPullToRefreshRenderer.Init() in AppDelegate class. Similarly If you use SfListView in your project it is necessary to add SfListViewRenderer.Init() in the AppDelegate class. If you have not added, the View in iOS will be blank. Please refer the below UG link for more details. 
 
 
Regards, 
Shivagurunathan 
 



PA Passakorn July 3, 2018 04:48 AM UTC


I already added both pieces of code. When I comment SfPullToRefresh tag in XAML, the SfListView is display normally.

Here is actual code


 
                                       ProgressBackgroundColor="#428BCA" 
                                       TransitionMode="Push" 
                                       IsRefreshing="False"
                                       VerticalOptions="FillAndExpand" 
                                       HorizontalOptions="FillAndExpand"
                                       PullingThreshold="100"
                                       RefreshContentHeight="50"
                                       RefreshContentThreshold="50"
                                       RefreshContentWidth="50">
           
               
                                       LoadMoreOption="Auto"
                                       LoadMoreCommand="{Binding LoadWorkListItemsCommand}"
                                       LoadMoreCommandParameter="{Binding Source={x:Reference Name=ListViewWorkItems}}"
                                       ItemsSource="{Binding WorkItems}" ItemSize="130" AutoFitMode="None" SelectionMode="None"
                                       SelectionBackgroundColor="Transparent"
                                       ItemTemplate="{StaticResource WorkListDataTemplateSelector}" 
                                       VerticalOptions="FillAndExpand" 
                                       HorizontalOptions="FillAndExpand">


Looking forward for the solution.

Thanks.


PA Passakorn July 3, 2018 04:58 AM UTC

Here is what I found out, I put SfPullToRefresh in FlexLayout which is introduced in Xamarin 3.0. It is NOT displayed in iOS even set VerticalOption and HorizontalOption of FlexLayout to FillAndExpand but it is displayed normally in Android. Now I have changed FlexLayout and StackLayout and it is displayed normally for both of iOS and Android. So in this case, the issue is SfPullToRefresh (Forms) is not support FlexLayout in iOS. Cheers



SK Shivagurunathan Kamalakannan Syncfusion Team July 6, 2018 01:37 PM UTC

Hi Passakorn,

Thank you for using Syncfusion products.
 
We confirmed that the issue with “SfPullToRefresh does not load any view as Pullable content inside FlexLayout” is a defect and we have logged a defect report. The fix for this issue will be available in our upcoming release. 

Regards,
Shivagurunathan Kamalakannan
 


Loader.
Up arrow icon