Footer doesnt size it correctly if I set AutoFitMode="Height"

I have my listview as below if I set  AutoFitMode="Height" , whatever I do, footer size will not work, it takes always default 40 i think. I tried

I tried to set the FooterSize as well but It doesnt help. 




    <sfListView:SfListView x:Name="lwExerciseDetails" BackgroundColor="White" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"
                               ItemsSource="{Binding tLogReportModels}" SelectionMode="None"  AllowGroupExpandCollapse="True"   
               ItemSpacing="1" AllowSwiping="False"   IsStickyHeader="False" AutoFitMode="Height" >
            <sfListView:SfListView.HeaderTemplate>
                <DataTemplate>
                    <Grid x:Name="grdExercise"  BackgroundColor="White" >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="2*"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                      
                     
                    </Grid>
                </DataTemplate>
            </sfListView:SfListView.HeaderTemplate>
            <sfListView:SfListView.DataSource>
                <data:DataSource>
                    <data:DataSource.GroupDescriptors>
                        <data:GroupDescriptor PropertyName="Name" />
                    </data:DataSource.GroupDescriptors>
                </data:DataSource>
            </sfListView:SfListView.DataSource>

            <sfListView:SfListView.LayoutManager>
                <sfListView:GridLayout SpanCount="1" />
            </sfListView:SfListView.LayoutManager>
            <sfListView:SfListView.ItemTemplate>
                <DataTemplate>
                    <Grid   BackgroundColor="White" >

                        <Label  Text="{Binding Text}" TextColor="Black" VerticalTextAlignment="Start" FontSize="Small" Margin="10,0"  LineBreakMode="WordWrap" />

                    </Grid>

                </DataTemplate>
            </sfListView:SfListView.ItemTemplate>
            <sfListView:SfListView.FooterTemplate>
                <DataTemplate>

                    <Grid VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"  >
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="*" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Picker Title="{resx:Translate SelectChart,IsUpper=True}" ItemsSource="{Binding ChartCategories}" SelectedItem="{Binding SelectedChartCategory}" Grid.Row="0"/>

                        <shared:_chartControl HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Grid.Row="1" MinimumHeightRequest="100"/>
                        <Label Text="Diagram"   Style="{StaticResource lblStyle}" Grid.Row="2"  />

                    </Grid>

                </DataTemplate>
            </sfListView:SfListView.FooterTemplate>
        </sfListView:SfListView>


1 Reply

DB Dinesh Babu Yadav Syncfusion Team October 18, 2017 05:53 AM UTC

Hi Emil, 
 
Thank you for using Syncfusion Products. 
 
Based on the given code snippet, we have checked the reported issue “Footer Item does not auto fit correctly when AutoFitMode is Height” with the latest SfListView version (v15.3.0.33) at our sample in all possible scenarios such as defining the IsStickyFooter as true/false, with/without GroupDescriptors and collapsing/expanding all the groups etc.., Unfortunately, we could not able to reproduce the issue and the footer item gets auto fit as expected in all platforms such as Android, iOS and UWP. For your reference, we have attached the ensured sample at our end and you can download it from the below link. 
 
 
Could you please check with the above sample? If the issue still replicates at your end, If possible, please replicate the issue in the above sample and revert us with the replication procedure and also please share the following details which would help us to analyze the issue better and update you an appropriate solution. 
 
  • Have you ensured the reported issue at latest SfListView version (v15.3.0.33) and share the Xamarin Forms version? We have ensured it in latest Xamarin Forms version (v2.4.0.282) too.
  • Whether the issue replicates only in specific platform such as Android only or in others too?
 
Please let us know if you require further assistance. 
 
Dinesh Babu Yadav 


Loader.
Up arrow icon