Xamarin.forms: [Bug]Grouped CollectionView shows the item source object name in each group

Created on 25 Oct 2019  路  6Comments  路  Source: xamarin/Xamarin.Forms

Description

I am using Grouping with CollectionView. The Collection View shows the name of the itemssource object in the end of every group. The name of the object in this case happens to be ShellRepro.CategoryGroup.

Screenshots

CollectionView

Reproduction Link

ShellRepro.zip

2 help wanted in-progress inactive iOS 馃崕 bug up-for-grabs

Most helpful comment

It seems to be the group footer. As a work around, adding

        <CollectionView.GroupFooterTemplate>
           <DataTemplate >
               <ContentView/>
           </DataTemplate>
        </CollectionView.GroupFooterTemplate>

Seems to make it go away.

All 6 comments

It seems to be the group footer. As a work around, adding

        <CollectionView.GroupFooterTemplate>
           <DataTemplate >
               <ContentView/>
           </DataTemplate>
        </CollectionView.GroupFooterTemplate>

Seems to make it go away.

@GalaxiaGuy Thank you for the workaround. I can use this until issue is resolved.

@GalaxiaGuy Thank you for the workaround It worked.

Yes, there is a footer added automatically for grouped views. We should only show a footer if there is a footer template assigned.

@Clancey This is intentionally put in. If there is no template provided, we have a default fallback template. It makes sense for Items to have a fallback template. But for header and footer we shouldn't show anything.

@hartez Any update on this?

@hartez sorry for hijacking the issue, just thought I might take a look. Replaced the default supplementals with empty view.

Was this page helpful?
0 / 5 - 0 ratings