New to Telerik UI for WPFStart a free 30-day trial

Represents a grouping abstraction that knows how to create group key and group sort expressions.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

C#
public interface IGroupDescriptor : INotifyPropertyChanged

Derived Classes: ColumnGroupDescriptorAggregatedGroupDescriptorBaseGroupDescriptorGroupDescriptorBaseGroupDescriptor<TElement, TKey, TSortingKey>

Inherited Members INotifyPropertyChanged.PropertyChanged

Properties

Gets or sets the sort direction for this descriptor. If the value is null no sorting will be applied.

C#
ListSortDirection? SortDirection { get; set; }
Property Value:

The sort direction. The default value is null.

Methods

Creates a group expression that returns the grouping key for each item in a collection.

C#
Expression CreateGroupKeyExpression(Expression itemExpression)
Parameters:itemExpressionExpression

Expression representing an item in a collection.

Returns:

Expression

Expression that creates group key for the given item.

Creates the group order by expression that sorts the groups created from this descriptor.

C#
Expression CreateGroupSortExpression(Expression groupingExpression)
Parameters:groupingExpressionExpression

The grouping expression, which represents the grouped items created from the CreateGroupKeyExpression(Expression).

Returns:

Expression

Expression that represents the sort criteria for each group.