Interface IGroupDescriptor
Represents a grouping abstraction that knows how to create group key and group sort expressions.
Namespace: Telerik.Windows.Data
Assembly: Telerik.Windows.Data.dll
Syntax
public interface IGroupDescriptor : INotifyPropertyChanged
Properties
SortDirection
Gets or sets the sort direction for this descriptor. If the value is null no sorting will be applied.
Declaration
Nullable<ListSortDirection> SortDirection { get; set; }
Property Value
System.Nullable<System.ComponentModel.ListSortDirection>
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
System.Linq.Expressions.Expression
itemExpression
Expression representing an item in a collection. |
Returns
System.Linq.Expressions.Expression
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
System.Linq.Expressions.Expression
groupingExpression
The grouping expression, which represents the grouped items created from the CreateGroupKeyExpression(Expression). |
Returns
System.Linq.Expressions.Expression
Expression that represents the sort criteria for each group. |