- Home
- Forum
- Xamarin.Forms
- SFListivew in ScrollView disappears items
SFListivew in ScrollView disappears items
Good afternoon, I have a problem with the SFListView, in the code that I show, everything worked correctly, when the search button is pressed, the client data is shown in the listview, if I press search again, the new data is displayed in the list view.
The problem is when I try to add a ScrollView after the buttons, the first search is displayed without problems in the listview, but I press the search button again, the listview seems to load but the items are not shown.
I already tried adding : HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
and : VerticalOptions="EndAndExpand".
<ContentPage.Resources >
<ResourceDictionary >
<local:SelectionBoolToBackgroundColorConverter x:Key="BoolToColorConverter"/>
</ResourceDictionary >
</ContentPage.Resources >
<ContentPage.Content>
<StackLayout BackgroundColor="#F5F6F6">
<tabView:SfTabView VerticalOptions="FillAndExpand" DisplayMode="ImageWithText" HorizontalOptions="FillAndExpand" VisibleHeaderCount="2">
<tabView:SfTabItem Title="DATOS" ImageSource="expediente" TitleFontAttributes="Bold">
<tabView:SfTabItem.Content>
<StackLayout Orientation="Vertical">
<StackLayout Orientation="Horizontal" Spacing="0" Margin="0,-10,0,-20">
<input:SfTextInputLayout ContainerType="Outlined" FocusedColor="Purple" UnfocusedColor="Purple" OutlineCornerRadius="8" Hint="Codigo " Margin="10,10,0,10">
<Entry Keyboard="Numeric" x:Name="txt_Codigo"/>
</input:SfTextInputLayout>
<buttons:SfButton x:Name="btn_BuscarCodigo" Clicked="Btn_BuscarCodigo_Clicked" ImageSource="buscar" ShowIcon="True" ImageAlignment="End" Text="Buscar" HasShadow="True" CornerRadius="15" Margin="10,20,0,30" BackgroundColor="Orange"/>
<buttons:SfButton x:Name="btn_BuscarCliente" Clicked="Btn_BuscarCliente_Clicked" ImageSource="buscarClt" ShowIcon="True" ImageAlignment="End" Text="Buscar Cliente" HasShadow="True" CornerRadius="15" Margin="10,20,0,30" BackgroundColor="Orange"/>
</StackLayout>
<StackLayout >
<Label Text="TITULAR" x:Name="lbl_Titular" FontAttributes="Bold" TextColor="Purple" IsVisible="False" Margin="10,5,0,0"/>
<listview:SfListView x:Name="lvDatosExpediente" IsScrollingEnabled="False" AutoFitMode="Height" SelectionBackgroundColor="Transparent" ItemSpacing="5,0,5,0">
<listview:SfListView.ItemTemplate>
<DataTemplate x:Name="ItemTemplateE">
<Frame x:Name="frameE" HasShadow="True" Padding="0" Margin="1">
<Grid RowSpacing="0" ColumnSpacing="0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Grid.Column="0" Text="{Binding sTitulo}" FontAttributes="Bold" TextColor="Black" />
<Label Grid.Row="1" Grid.Column="0" Text="{Binding sData}" TextColor="Black" />
<Image Grid.Row="0" Grid.Column="1" Grid.RowSpan="2" Source="{Binding sIcon}" HorizontalOptions="Center" VerticalOptions="Center"/>
</Grid>
</Frame>
</DataTemplate>
</listview:SfListView.ItemTemplate>
</listview:SfListView>
</StackLayout>
</StackLayout>
</tabView:SfTabItem.Content>
</tabView:SfTabItem>
</StackLayout>
</ContentPage.Content>
SIGN IN To post a reply.
4 Replies
1 reply marked as answer
SS
SaiGanesh Sakthivel
Syncfusion Team
August 31, 2020 12:16 PM UTC
Hi David,
Thank you for contacting syncfusion support.
We have checked the reported query “SFListivew in ScrollView disappears items” from our end. We would like to inform you that we have logged issue report for the same. We will fix the issue and include the issue fix in our upcoming 2020 Volume 3 release which is planned to roll out in the month of September, 2020. We appreciate your patience until then.
Regards,
SaiGanesh Sakthivel
SS
SaiGanesh Sakthivel
Syncfusion Team
September 15, 2020 09:51 AM UTC
Hi David,
Thank you for the patience,
We have fixed the reported issue “SFListivew in ScrollView disappears items” and included the issue fix in our latest Weekly NuGet release update version 18.2.0.58 which is available for download (https://www.nuget.org/).
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.
Regards,
SaiGanesh Sakthivel
Marked as answer
DA
David
September 29, 2020 12:26 PM UTC
Gracias, lo comprobaré.
SS
SaiGanesh Sakthivel
Syncfusion Team
September 30, 2020 12:44 PM UTC
Hi David,
Thank you for the update.
We are glad to know that the provided solution is resolved the issue.
Regards,
SaiGanesh Sakthivel
SIGN IN To post a reply.