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

Represents a group descriptor, which can group by date time values.

Definition

Constructors

Initializes a new instance of the QueryableDateTimeGroupDescription class.

C#
public QueryableDateTimeGroupDescription()

Properties

Gets a value indicating whether grouped data should be processed before handing it over to the engine.

C#
protected override bool NeedsProcessing { get; }
Property Value:

true if should process; otherwise, false.

Overrides: QueryablePropertyGroupDescriptionBase.NeedsProcessing

Gets or sets the step of the grouping.

C#
[DataMember]
public DateTimeStep Step { get; set; }

Methods

Creates a deep copy of this group description by copying core properties including sort order and group comparer. This method ensures that cloned instances maintain their grouping and sorting configuration independently.

C#
protected override void CloneCore(Cloneable source)
Parameters:sourceCloneable

The source group description to clone from.

Overrides: QueryablePropertyGroupDescriptionBase.CloneCore(Cloneable)

Remarks:

Notes to Inheritors If you derive from Cloneable, you may need to override this method to copy all properties. It is essential that all implementations call the base implementation of this method (if you don't call base you should manually copy all needed properties including base properties).

Creates the group key expression.

C#
protected override Expression CreateGroupKeyExpression(IEnumerable<Expression> valueExpressions)
Parameters:valueExpressionsIEnumerable<Expression>

Value expressions used for generating group key.

Returns:

Expression

Expression that creates group key for the given item.

Overrides: QueryablePropertyGroupDescriptionBase.CreateGroupKeyExpression(IEnumerable<Expression>)

Creates value expressions for values that will be used for generating group key expression.

C#
protected override IEnumerable<Expression> CreateGroupKeyValuesExpressions(ParameterExpression itemExpression)
Parameters:itemExpressionParameterExpression

The parameter expression, which will be used for grouping.

Returns:

IEnumerable<Expression>

Value expressions.

Overrides: QueryablePropertyGroupDescriptionBase.CreateGroupKeyValuesExpressions(ParameterExpression)

When implemented in a derived class, creates a new instance of the Cloneable derived class.

C#
protected override Cloneable CreateInstanceCore()
Returns:

Cloneable

New instance for cloning.

Overrides: Cloneable.CreateInstanceCore()

Remarks:

Do not call this method directly (except when calling base in an implementation). This method is called internally by the Clone() method whenever a new instance of the Cloneable is created. Notes to Inheritors. Every Cloneable derived class must implement this method. A typical implementation is to simply call the default constructor and return the result.

Returns all possible group keys for this instance.

C#
protected override IEnumerable<object> GetAllNames(IEnumerable<object> uniqueNames, IEnumerable<object> parentGroupNames)
Parameters:uniqueNamesIEnumerable<object>

Enumeration of all unique group keys that were discovered after grouping.

parentGroupNamesIEnumerable<object>

Enumeration of all parent groups.

Returns:

IEnumerable<object>

Returns all possible group keys for this instance.

Overrides: QueryableGroupDescription.GetAllNames(IEnumerable<object>, IEnumerable<object>)

Returns the member name for this description.

C#
public override string GetUniqueName()
Returns:

string

Overrides: QueryablePropertyGroupDescriptionBase.GetUniqueName()