InterfaceIGroupDescriptor
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:
public interface IGroupDescriptor : INotifyPropertyChanged
Inherited Members
Properties
SortDirection
Gets or sets the sort direction for this descriptor. If the value is null no sorting will be applied.
Declaration
ListSortDirection? SortDirection { get; set; }
Property Value
The sort direction. The default value is null.
Methods
CreateGroupKeyExpression(Expression)
Creates a group expression that returns the grouping key for each item in a collection.
Declaration
Expression CreateGroupKeyExpression(Expression itemExpression)
Parameters
itemExpression
Expression representing an item in a collection.
Returns
Expression that creates group key for the given item.
CreateGroupSortExpression(Expression)
Creates the group order by expression that sorts the groups created from this descriptor.
Declaration
Expression CreateGroupSortExpression(Expression groupingExpression)
Parameters
groupingExpression
The grouping expression, which represents the grouped items created from the CreateGroupKeyExpression(Expression).
Returns
Expression that represents the sort criteria for each group.