.NET MAUI ListView Grouping

The ListView provides you with the functionality to programmatically group its data at runtime. This can be achieved through adding group descriptors to the RadListView.GroupDescriptors collection.

Telerik Maui Ninja image

The Grouping is part of Telerik UI for .NET MAUI, the most comprehensive UI suite for .NET MAUI! To try it out, sign up for a free 30-day trial and kickstart your cross-platform app development today.

  • PropertyGroupDescriptor
  • DelegateGroupDescriptor

PropertyGroupDescriptor

You can group the data by a property value from the class that defines your items. For more details, refer to Property Group Descriptor article.

DelegateGroupDescriptor

This descriptor enables you to group by a custom key(for example, some complex expression combining two or more properties) instead of being limited by the value of a single property. For more details go to Delegate Group Descriptor article.

Custom Group Header Template

Create custom GroupHeaderTemplate to achieve the desired look when grouping the ListView. For more details, refer to the Group Header Template article.

Sticky Group Headers

The ListView provides the option to set its group headers as sticky. This means the GroupHeader will "freeze" while scrolling through the items until the whole group is scrolled away. As you scroll through the next group, the currently stuck group header will be pushed by the next group header.

For more information on how to enable the Sticky Group Header feature, refer to the Sticky Group Headers article.

Expand/Collapse Groups

The control supports groups expand and collapse operations either through the UI by tapping on the group headers or programmatically. For more details, refer to the Expand and Collapse Groups article.

Bindable GroupDescriptor

Users can control the GroupDescriptor collection by using MVVM. For more details, refer to the Bindable Group Descriptors article.

For an outline of all ListView features review the .NET MAUI ListView Overview article.

See Also

In this article