Class ListViewPropertyGroupDescriptor
Represents a group descriptor that groups items by a specified property name. Inherits from GroupDescriptorBase to provide property-based grouping functionality.
Inheritance
Inherited Members
Namespace: Telerik.Maui.Controls.Compatibility.DataControls.ListView
Assembly: Telerik.Maui.Controls.Compatibility.dll
Syntax
public class ListViewPropertyGroupDescriptor : GroupDescriptorBase, IChildElement, IComparer, IComparer<object>, IKeyLookup
Constructors
ListViewPropertyGroupDescriptor()
Declaration
public ListViewPropertyGroupDescriptor()
Fields
PropertyNameProperty
Identifies the PropertyName property.
Declaration
public static readonly BindableProperty PropertyNameProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
Properties
PropertyName
Gets or sets the name of the property to group by.
Declaration
public string PropertyName { get; set; }
Property Value
System.String
The property name used for grouping items. |
Methods
GetDescriptorCollection(RadListView)
Gets the descriptor collection from the specified RadListView.
Declaration
protected override IList GetDescriptorCollection(RadListView listView)
Parameters
RadListView
listView
The RadListView to get descriptors from. |
Returns
System.Collections.IList
The collection of group descriptors. |
Overrides
GetKeyCore(Object)
Gets the grouping key for the specified item based on the property name.
Declaration
protected override object GetKeyCore(object item)
Parameters
System.Object
item
The item to get the grouping key for. |
Returns
System.Object
The value of the specified property for the item. |
Overrides
Exceptions
System.InvalidOperationException
Thrown when PropertyName is null or empty. |
OnPropertyChanged(String)
Called when a property value changes.
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
System.String
propertyName
The name of the property that changed. |