Class
ListViewDelegateGroupDescriptor

Represents a group descriptor that uses a delegate function to extract grouping keys from items.

Definition

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

Assembly:Telerik.Maui.Controls.Compatibility.dll

Syntax:

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

Inheritance: objectDataDescriptorBaseOrderedDescriptorBaseGroupDescriptorBaseListViewDelegateGroupDescriptor

Implements: IComparerIComparer<object>IKeyLookup

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

Constructors

ListViewDelegateGroupDescriptor()

Declaration

cs-api-definition
public ListViewDelegateGroupDescriptor()

Fields

KeyExtractorProperty

Identifies the KeyExtractor bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty KeyExtractorProperty

Field Value

BindableProperty

Properties

KeyExtractor

Gets or sets the function used to extract grouping keys from items.

Declaration

cs-api-definition
public Func<object, object> KeyExtractor { get; set; }

Property Value

Func<object, object>

A Func<T, TResult> that takes an object and returns the grouping key.

Methods

GetDescriptorCollection(RadListView)

Gets the descriptor collection from the specified list view.

Declaration

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

Parameters

listView

RadListView

The RadListView instance.

Returns

IList

The group descriptors collection as IList.

Overrides DataDescriptorBase.GetDescriptorCollection(RadListView)

GetKeyCore(object)

Extracts the grouping key from the specified item using the custom key extractor.

Declaration

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

Parameters

item

object

The item to extract the key from.

Returns

object

The grouping key for the item.

Overrides GroupDescriptorBase.GetKeyCore(object)