TreeView inside TabView not working on Android

Hi 
I have a view has TabView one the tabs has TreeView in it, it works fine in UWP version but in Andriod, I got an unknown exception.



Xaml:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:tabView="clr-namespace:Syncfusion.XForms.TabView;assembly=Syncfusion.SfTabView.XForms"
             xmlns:sfTreeView="clr-namespace:Syncfusion.XForms.TreeView;assembly=Syncfusion.SfTreeView.XForms"
             x:Class="SmartWalet.Views.CommonViews.Settings">
    <ContentPage.Content>
        <ScrollView>
            <Grid>
                <sfTreeView:SfTreeView x:Name="treeView">

                </sfTreeView:SfTreeView>
                <tabView:SfTabView x:Name="TabView"  
                           VisibleHeaderCount="2" 
                           TabHeaderPosition="Top" TabHeight="60" 
                           EnableSwiping="True" 
                           TabHeaderBackgroundColor="#F6F6F6" 
                           OverflowMode="Scroll">
                    <tabView:SfTabItem HeaderContent="Test1">
                        <tabView:SfTabItem.Content>
                            <sfTreeView:SfTreeView x:Name="treeView" ChildPropertyName="SubAccounts" ExpandActionTarget="Node" ItemsSource="{Binding Tree}">
                                <sfTreeView:SfTreeView.ItemTemplate>
                                    <DataTemplate>
                                        <Grid Padding="5,0,0,0" BackgroundColor="Transparent">
                                            <Label Text="{Binding AccountName}" FontSize="Medium" VerticalTextAlignment="Center"/>
                                        </Grid>
                                    </DataTemplate>
                                </sfTreeView:SfTreeView.ItemTemplate>
                            </sfTreeView:SfTreeView>
                        </tabView:SfTabItem.Content>
                    </tabView:SfTabItem>
                    <tabView:SfTabItem HeaderContent="Test2">
                        <tabView:SfTabItem.Content>
                            <Label Text=" Hay Not You"></Label>
                        </tabView:SfTabItem.Content>
                    </tabView:SfTabItem>
                </tabView:SfTabView>
            </Grid>
        </ScrollView>
    </ContentPage.Content>
</ContentPage>


6 Replies

JN Jayaleshwari N Syncfusion Team October 25, 2018 12:25 PM UTC

Hi Mohammed,  
  
Thanks for using Syncfusion product.  
  
We have checked the reported query “TreeView inside TabView not working on Android”from our side. Unfortunately the reported issue does not reproduced at our end. We have prepared sample based on the provided code snippet which working fine at our end. We have attached our tested sample here, please find the sample from below link.  
 
 
Can you please check the above sample whether you facing issue in our sample also. If no, can you please revert us back with the modified sample or any replication procedure to analyze better and provide appropriate solution at our end.          
  
Regards,  
Jayaleshwari N    



MO Mohammed October 25, 2018 02:29 PM UTC

Thanks for your respond,

I tried your sample, UWP version works fine but the Android doesn't, I have this exception in (MainActivity.cs "android project") :

I tried to create a new project and duplicate your sample, same result.


 


MO Mohammed October 25, 2018 02:32 PM UTC

If I move the treeview out of the tabview the android project works .


JN Jayaleshwari N Syncfusion Team October 26, 2018 10:40 AM UTC

Hi Mohammed,  
  
We have checked the given sample in our last update. Sample deployed in android from our side and we couldn’t able to reproduce the issue from our side. We have attached tested video below,  please find the video from below link.  
  
  
Can you please check in your project by clearing nuget cache and all bin, obj files and also ensure whether your project referenced the SfTabView and SfTreeView references properly. Please follow the below link to check the reference.  
  
   
Regards,  
Jayaleshwari N 



MO Mohammed October 26, 2018 12:05 PM UTC

Hi ,

Thank you for your time and effort, I tried everything to make it work, no luck until now, I will try later on a different machine, or try a different solution.
Even your sample I have the same result "Unhandled Exception" when I click Continue the have this exception in output window:


Thanks again.


JN Jayaleshwari N Syncfusion Team October 29, 2018 11:08 AM UTC

Hi Mohammed,  
  
Please follow the incident created under your account for the same query for further updates.  
  
Regards,  
Jayaleshwari N 


Loader.
Up arrow icon