Disable scrollbar

Hello,

I have an accordion with an sflistview under each header. When I expand the headers, a scrollbar  shows up until it is completely expanded. I have the height set for each list with a converter based on how many items are in the list, so I do not need a scrollbar. Is there a way of disabaling this so that it is not seen when expanding and contracting the headers?

Thanks

1 Reply 1 reply marked as answer

SS SaiGanesh Sakthivel Syncfusion Team February 4, 2021 08:51 AM UTC

Hi Spencer, 
 
Thank you for using syncfusion products. 
 
#Regarding Disable scrollbar 
We have checked the reported query from our end. we would like to inform you that you can achieve your requirement by setting the IsScrollBarVisible property has false in SfListview. Please refer to the following code snippet for your reference. 
 
Code snippet: 
<syncfusion:AccordionItem.Content> 
    <sfListView:SfListView x:Name="listView" IsScrollBarVisible="False" HeightRequest="{Binding Varieties, Converter={StaticResource HeightConverter}, ConverterParameter={x:Reference listView}}" ItemSize="50" ItemsSource="{Binding Varieties}" ItemSpacing="1"> 
        <sfListView:SfListView.ItemTemplate> 
            <DataTemplate> 
                <Grid RowSpacing="0"> 
                    <Label Text="{Binding Name}" VerticalOptions="Center" HorizontalOptions="Start" Padding="2"/> 
                    <Label Grid.Column="1" Text="{Binding Price}" VerticalOptions="Center" HorizontalOptions="Start" Padding="2"/> 
                </Grid> 
            </DataTemplate> 
        </sfListView:SfListView.ItemTemplate> 
    </sfListView:SfListView> 
</syncfusion:AccordionItem.Content> 
 
Please refer to the tested sample in the following link for your reference. 
 
 
Output 
 
 
Please let us know if you have any concern. 
 
Regards, 
SaiGanesh Sakthivel 


Marked as answer
Loader.
Up arrow icon