We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Listview is empty after implementing Group header template.

Thread ID:





144815 May 24,2019 01:02 AM UTC May 24,2019 12:31 PM UTC Xamarin.Forms 1
Tags: SfListView
Asked On May 24, 2019 01:02 AM UTC

So the problem is that I was using xamarin forms listview and everything was working fine. Now I've decided to switch to sflistview and when I implemented group header template, the listview was empty. Here are the codes.


                            <Label Text="{x:Binding Key}" />

Code behind.

var groupedData = return_response_data.OrderBy(x => x.Months)
                                  .ThenByDescending(x => x.Days)
                                  .GroupBy(x => x.DateSet)
                                  .Select(x => new ObservableGroupCollection<string, PhotoModel>(x))

                var binding = new ObservableCollection<ObservableGroupCollection<string, PhotoModel>>(groupedData);

                InfoList.ItemsSource = binding;

Binding variable has two groups and 8 entries in each. My listview is showing me two empty frames right now. Don't know what's the problem. It was working fine with xamarin forms listview and I don't need group descriptor.

Subburaj Pandian Veluchamy [Syncfusion]
Replied On May 24, 2019 12:31 PM UTC

Hi Wasif, 
Thank you for contacting Syncfusion support. 
We would like to inform you that in SfListView, you need to add GroupDescriptors to group the items based on its PropertyName. We have mentioned in detail regarding grouping ListView items and its customizations in our User Guide documentation. 
Please refer our UG for your reference from the following link, 
We hope this helps. Please let us know, if you need any further assistance. 
Subburaj Pandian V 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon