Bug IndexOutOfBoundsException

Hi,

I am trying to embed a sfexpander as a itemtemplate in a listview.

When I setup autofitmode="DynamicHeight" I have an exception IndexOutOfBoundsException

Can you help?

 <xforms:SfListView Grid.Row="1" x:Name="hlist" Orientation="Vertical" BackgroundColor="Transparent" Margin="10,15,10,10" VerticalOptions="Start" ItemsSource="{Binding ScroreDetailDto, Mode=TwoWay}" AutoFitMode="DynamicHeight" SelectionMode="None" >

                            <xforms:SfListView.ItemTemplate>

                                <DataTemplate x:DataType="dtos:ScoreHistoryDto">

                                    <Frame x:Name="frame" CornerRadius="2" VerticalOptions="Start" Padding="{OnPlatform Android=1, iOS=1,  UWP=0}" Margin="{OnPlatform Android=1, iOS=1,  UWP=0}" OutlineColor="White" HasShadow="{OnPlatform Android=true, iOS=false, UWP=true}">
                                        <Grid Padding="{OnPlatform Android=2, iOS=2,  UWP=0}" Margin="{OnPlatform Android=1, iOS=1,  UWP=0}" BackgroundColor="White"  >
                                            <expander:SfExpander HeaderIconPosition="None" AnimationEasing="{Binding Animation}" >
                                                <expander:SfExpander.Header>

1 Reply

SS SaiGanesh Sakthivel Syncfusion Team March 18, 2021 01:43 PM UTC

Hi Alexis, 
 
Thank you for contacting syncfusion support. 
 
#Regarding IndexOutOfBoundsException 
we regret to inform you that we could not replicate the reported scenario from our side. We have prepared the sample as per given information and we have tested the sample with AndroidX (Realme x2 pro) device. Please refer to the tested sample in the following link for your reference. 
 
  
Please check the sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario and revert us back with the following details, 
 
·       Share the syncfusion version used in the sample. 
·       Share the Xamarin version version used in the sample. 
·       Share the issue replicate platform. 
·       Share the issue replicate procedure and issue replicate the video. 
 
Regards, 
SaiGanesh Sakthivel 


Loader.
Up arrow icon