Class
ListViewPropertyGroupDescriptor

Represents a group descriptor that groups items by a specified property name. Inherits from GroupDescriptorBase to provide property-based grouping functionality.

Definition

Namespace:Telerik.Maui.Controls.Compatibility.DataControls.ListView

Assembly:Telerik.Maui.Controls.Compatibility.dll

Syntax:

cs-api-definition
public class ListViewPropertyGroupDescriptor : GroupDescriptorBase, IComparer, IComparer<object>, IKeyLookup

Inheritance: objectDataDescriptorBaseOrderedDescriptorBaseGroupDescriptorBaseListViewPropertyGroupDescriptor

Implements: IComparerIComparer<object>IKeyLookup

Inherited Members GroupDescriptorBase.GetKey(object)GroupDescriptorBase.GetDefaultKey(object)OrderedDescriptorBase.SortOrderPropertyOrderedDescriptorBase.Compare(object, object)OrderedDescriptorBase.SortOrder

Constructors

ListViewPropertyGroupDescriptor()

Declaration

cs-api-definition
public ListViewPropertyGroupDescriptor()

Fields

PropertyNameProperty

Identifies the PropertyName property.

Declaration

cs-api-definition
public static readonly BindableProperty PropertyNameProperty

Field Value

BindableProperty

Properties

PropertyName

Gets or sets the name of the property to group by.

Declaration

cs-api-definition
public string PropertyName { get; set; }

Property Value

string

The property name used for grouping items.

Methods

GetDescriptorCollection(RadListView)

Gets the descriptor collection from the specified RadListView.

Declaration

cs-api-definition
protected override IList GetDescriptorCollection(RadListView listView)

Parameters

listView

RadListView

The RadListView to get descriptors from.

Returns

IList

The collection of group descriptors.

Overrides DataDescriptorBase.GetDescriptorCollection(RadListView)

GetKeyCore(object)

Gets the grouping key for the specified item based on the property name.

Declaration

cs-api-definition
protected override object GetKeyCore(object item)

Parameters

item

object

The item to get the grouping key for.

Returns

object

The value of the specified property for the item.

Exceptions

InvalidOperationException

Thrown when PropertyName is null or empty.

Overrides GroupDescriptorBase.GetKeyCore(object)

OnPropertyChanged(string)

Called when a property value changes.

Declaration

cs-api-definition
protected override void OnPropertyChanged(string propertyName = null)

Parameters

propertyName

string

The name of the property that changed.

Overrides OrderedDescriptorBase.OnPropertyChanged(string)