Hello
I am using Syncfusion.Xamarin NuGet packages v17.3.0.33.
In my SfListView some items are randomly disappearing/appearing.
The layout of the SfListView is as follows:
Grouping
Grid
Col1 | Col2
Now the problem is that the texts in Col2 disappear sometimes. I couldn't figure out the exact circumstances when this happens, but often one of the following is the case.
- The list contains > 20 items
- Scrolling very fast causes items to disappear
- Scrolling slowly causes items to (re)appear.
- Col2 can contain normal or fomatted text, both disappear sometimes
- Only texts in Col2 disappear
This occurs for both iOS and UWP.
Do you have any idea why this happens and how to fix it?
Below you can see the xaml code.
<ContentView>
<ContentView.Content>
<Grid Margin="0, 10, 0, 10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<xForms:SfListView Grid.Row="1" ItemsSource="{Binding OverViewList}" AllowGroupExpandCollapse="False" IsStickyGroupHeader="False" SelectionMode="None" AutoFitMode="DynamicHeight" Margin="0, 10, 0, 10" TapCommand="{Binding OverViewItemTappedCommand}">
<xForms:SfListView.DataSource>
<dataSource:DataSource>
<dataSource:DataSource.GroupDescriptors>
<dataSource:GroupDescriptor PropertyName="Group"/>
</dataSource:DataSource.GroupDescriptors>
</dataSource:DataSource>
</xForms:SfListView.DataSource>
<xForms:SfListView.GroupHeaderTemplate>
<DataTemplate>
<ViewCell>
<Label Text="{Binding Key}" FontSize="Medium" FontAttributes="Bold" Margin="5, 10, 5, 0"></Label>
</ViewCell>
</DataTemplate>
</xForms:SfListView.GroupHeaderTemplate>
<xForms:SfListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid Margin="10, 0, 10, 0">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Grid.Column="0" Text="{Binding Key}" FormattedText="{Binding KeyFormatted}" LineBreakMode="WordWrap"/>
<Label Grid.Column="1" Text="{Binding Value}" FormattedText="{Binding ValueFormatted}" LineBreakMode="WordWrap"/>
</Grid>
</ViewCell>
</DataTemplate>
</xForms:SfListView.ItemTemplate>
</xForms:SfListView>
</ContentView.Content>
</ContentView>
Kind regards
Phil