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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to display the items count of group in the group header item in SfListView?

In SfListView, you can display the items count for each group in the group header item by customizing the GroupHeaderTemplate property and to expand/collapse the groups at runtime you need to define the AllowGroupExpandCollapse as true like following code example. So, when you tap on the group header, then the tapped group gets collapse if the group is in expand state and vice-versa.

XAML

 

To display the total number of items in each group in the group header item, you need to bind the Count property in the GroupHeaderTemplate as like following code example.

XAML

 

Now run the application to render the following output.

C:\Users\dinesh.babuyadav\AppData\Local\Microsoft\Windows\INetCache\Content.Word\Screenshot_20171003-130923.png

 

Sample Link: ListView_Grouping

Article ID: Published Date: Last Revised Date: Platform: Control:
8019 10/03/2017 11/27/2017 Xamarin.Forms SfListView
Did you find this information helpful?
Comments
Bruno Jan 16, 2018

how can I sum a value of the grouped list for that key

Reply
Add Comment
You must log in to leave a comment

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