Class
ListViewDelegateSortDescriptor

Represents a sort descriptor that uses a delegate function to compare items for sorting.

Definition

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

Assembly:Telerik.Maui.Controls.Compatibility.dll

Syntax:

cs-api-definition
public class ListViewDelegateSortDescriptor : SortDescriptorBase, IComparer, IComparer<object>

Inheritance: objectDataDescriptorBaseOrderedDescriptorBaseSortDescriptorBaseListViewDelegateSortDescriptor

Implements: IComparerIComparer<object>

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

Constructors

ListViewDelegateSortDescriptor()

Declaration

cs-api-definition
public ListViewDelegateSortDescriptor()

Fields

ComparerProperty

Identifies the Comparer bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty ComparerProperty

Field Value

BindableProperty

Properties

Comparer

Gets or sets the comparer function used to compare items for sorting.

Declaration

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

Property Value

Func<object, object, int>

A Func<T1, T2, TResult> that takes two objects and returns an integer indicating their relative sort order.

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 sort descriptors collection as IList.

Overrides DataDescriptorBase.GetDescriptorCollection(RadListView)