SfTabView -> SfPullToRefresh -> SfListView not render datatemplate.

Hi Syncfusion,

I have problem when using SfTabView.

When I put SfListView inside SfPullToRefresh and SfPullToRefresh as content of SfTabItem, DataTemplate of the SfListView not render content, but I can tapped to it.


Please check my source.

I need to fix this future now because my customer need that.

Thanks you.


Attachment: GettingStarted_470be2b5.zip

5 Replies

SS Suganya Sethuraman Syncfusion Team December 9, 2021 07:01 AM UTC

Hi Nguyen,

Greetings from Syncfusion.

We have checked the reported issue. To resolve the issue, we recommend that you use the parent layout for the SfPullToRefresh control, as shown in the code snippet below.

Code snippet
 
<tab:SfTabItem.Content> 
                <Grid> 
                <pull:SfPullToRefresh Pulling="SfPullToRefresh_Pulling" Refreshing="SfPullToRefresh_Refreshing"> 
                    <pull:SfPullToRefresh.PullableContent> 
                        <sync:SfListView x:Name="listView"  
                           ItemsSource="{Binding BookInfo}" 
                           ItemSize="100" 
                           ItemTapped="listView_ItemTapped"> 
                            <sync:SfListView.ItemTemplate> 
                                <DataTemplate> 
                                    <Grid Padding="10"> 
                                        <Grid.RowDefinitions> 
                                            <RowDefinition Height="0.4*" /> 
                                            <RowDefinition Height="0.6*" /> 
                                        </Grid.RowDefinitions> 
                                        <Label x:Name="label" Text="{Binding BookName}" FontSize="21" FontAttributes="Bold"/> 
                                        <Label Grid.Row="1" Text="{Binding BookDescription}" FontSize="15"/> 
                                    </Grid> 
                                </DataTemplate> 
                            </sync:SfListView.ItemTemplate> 
                        </sync:SfListView> 
                    </pull:SfPullToRefresh.PullableContent> 
                </pull:SfPullToRefresh> 
                </Grid> 
            </tab:SfTabItem.Content> 

Please have a modified sample for your reference,

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/GettingStarted-1145709137

Please check and let us know if you have any concerns.

Regards,
Suganya Sethuraman.
 
 



NK Nguyen Khoa Lu December 10, 2021 03:00 AM UTC

I dont want to use any View to show that, because it may cause my application spend more RAM.

No way to fix that without add other view?



NK Nguyen Khoa Lu December 10, 2021 03:04 AM UTC

There is a bug? Your team will fix or not?

Thanks.



SS Suganya Sethuraman Syncfusion Team December 10, 2021 01:28 PM UTC

Hi Nguyen,

We have analyzed the reported issue. We have logged a defect report for the reported issue. You can keep track of the bug from the feedback portal below.

Link: https://www.syncfusion.com/feedback/31077

Note: The provided feedback link is private, and you need to login to view this feedback.

We will fix this issue and provide the patch on December 24, 2021.We appreciate your patience until then.

If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.

Regards,
Suganya Sethuraman.
 



SS Suganya Sethuraman Syncfusion Team December 23, 2021 10:20 AM UTC

Hi Nguyen,

Thanks for your patience.

On further analysis with the source, we would like to inform you that the reported issue occurs due to the IsClippedToBounds property set to true in PullToRefresh source. So that the tab view tab item content is not rendered in Android. This is related to xamarin forms framework issue. We have already asked a query in Xamarin.Forms discussion page. Please find the Xamarin.Forms discussion page from below link 

Link: https://github.com/xamarin/Xamarin.Forms/issues/7464 

We suggest you set the IsClippedToBounds property to false in PullToRefresh or use the pull to refresh inside the grid to resolve the reported issue. We have modified the sample based on this and please find the sample from the below link

Sample Link:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/GettingStarted83461987

Code Snippet: 
                <pull:SfPullToRefresh  Pulling="SfPullToRefresh_Pulling" IsClippedToBounds="false" Refreshing="SfPullToRefresh_Refreshing"> 
Please check with the above and let us know if you have any concerns.

Regards,
Suganya Sethuraman.

 


Loader.
Up arrow icon