SfDataGrid: Group caption empty bug

Hello,

I develop an app for Android with Xamarin Forms. I'm using SfDataGrid and I have the problem that upon the start of the app the group caption remains empty like in the image below. After I disable and enable grouping the group caption is displayed correctly. I tried to make a test project to show you the problem better but I didn't success to reproduce the problem. In my app the SfDataGrid is quite busy with item loading, sorting and so on. Maybe it has something with the issue to do but I don't know.

Image of the problem:
Problem

Image without problem:
NoProblem

XAML of SfDataGrid:
<syncfusion:SfDataGrid x:Name="SongsListView" BackgroundColor="White" Grid.Row="2" RowHeight="40" AutoGenerateColumns="False" AllowResizingColumn="True" VerticalOverScrollMode="None" ColumnSizer="Star" AllowSorting="False" AllowGroupExpandCollapse="True" ScrollingMode="Pixel" EnableDataVirtualization="True" LiveDataUpdateMode="AllowDataShaping" SelectionMode="Single" SelectionChanged="SongsListView_SelectionChanged" GridTapped="SongsListView_OnItemTapped" GridLongPressed="SongsListView_OnLongClicked" SortColumnsChanged="SongsListView_SortColumnsChanged" SortColumnsChanging="SongsListView_SortColumnsChanging" GridViewCreated="SongsListView_GridViewCreated">
<syncfusion:SfDataGrid.Columns x:TypeArguments="syncfusion:Columns">
<syncfusion:GridTemplateColumn HeaderText="MappedPlayed" MappingName="MappedPlayed" GroupMode="Display" IsHidden="True" ColumnSizer="None" Width="0"/>
<syncfusion:GridImageColumn HeaderText="" MappingName="Selection" Padding="5" IsHidden="True" ColumnSizer="None" Width="30"/>
<syncfusion:GridTemplateColumn HeaderText="MappedTitle" MappingName="MappedTitle" MinimumWidth="100"></syncfusion:GridTemplateColumn>
<syncfusion:GridTemplateColumn HeaderText="MappedArtist" MappingName="MappedArtist" MinimumWidth="120"></syncfusion:GridTemplateColumn>
<syncfusion:GridTemplateColumn HeaderText="MappedDuration" MappingName="MappedDuration" ColumnSizer="None" Width="100" MinimumWidth="80"></syncfusion:GridTemplateColumn>
<syncfusion:GridTemplateColumn HeaderText="MappedAlbum" MappingName="MappedAlbum" MinimumWidth="100"></syncfusion:GridTemplateColumn>
<syncfusion:GridTemplateColumn HeaderText="MappedBitrate" MappingName="MappedBitrate" ColumnSizer="None" Width="100" MinimumWidth="80"></syncfusion:GridTemplateColumn>
<syncfusion:GridTemplateColumn HeaderText="MappedDate" MappingName="MappedDate" ColumnSizer="None" Width="100" MinimumWidth="80"></syncfusion:GridTemplateColumn>
<syncfusion:GridTemplateColumn HeaderText="MappedPath" MappingName="MappedPath" MinimumWidth="100">
</syncfusion:GridTemplateColumn>
</syncfusion:SfDataGrid.Columns>
</syncfusion:SfDataGrid>


Code for grouping:
SongsDataGrid.GroupCaptionTextFormat = "{Key} ({ItemsCount})";
if (!SongsListView.GroupColumnDescriptions.Any())
{
SongsListView.GroupColumnDescriptions.Add(new GroupColumnDescription()
{
ColumnName = nameof(Song.MappedPlayed)
});
}


1 Reply

SK Suriya Kalidoss Syncfusion Team May 15, 2018 10:41 AM UTC

Hi Halil, 
Thank you for using Syncfusion Products, 
We had analyzed the code that you sent. We recommend to add caption summary grouping during initial loading to avoid this sample level issue. We had prepared and attached the sample based on the code that you have sent, and you can download it from below link 
Regards, 
Suriya K 


Loader.
Up arrow icon