The
RadListView
control is now obsolete and will be removed in the future. Use the RadCollectionView control instead. TheRadCollectionView
is a complete, ground-up rewrite of the ListView. TheRadCollectionView
offers improved performance, enhanced features, and a modernized approach to managing lists of data. TheRadCollectionView
incorporates all of the ListView's key features. More about the differences between both components and how to migrate to the newRadCollectionView
is available in the Migrating the Telerik .NET MAUI RadListView to RadCollectionView article.
.NET MAUI ListView 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.
To enable the sticky group headers behavior, set IsGroupHeaderSticky
property of the ListView to True
. By default IsGroupHeaderSticky
value is False
.
<telerik:RadListView x:Name="listView"
IsGroupHeaderSticky="True" />
var listView = new RadListView();
listView.IsGroupHeaderSticky = true;
The following image shows the sticky group headers in action: