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 Bindable GroupDescriptor
The GroupDescriptor collection now can be controlled by users using MVVM.
To control the GroupDescriptor collection through MVVM:
Create a property of type ObservableCollection<GroupDescriptorBase>
in your ViewModel
which will contain the needed group descriptors:
Use the OneWayToSource
binding mode to bind that property to the GroupDescriptors
property of RadListView
:
Here is how the GroupDescriptor
collection looks like through MVVM:
For the ListView Bindable GroupDescriptor example, go to the SDKBrowser Demo Application and navigate to ListView -> Grouping category.