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

Describes the grouping of items using a date range as the criteria.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

C#
public class DateGroupDescription : GroupDescription

Inheritance: objectDateGroupDescription

Constructors

C#
public DateGroupDescription()

Properties

Gets the duration of the group descriptor.

C#
public virtual TimeSpan GroupLength { get; }

Methods

Generates groups based on the given date range and filter.

C#
public void CreateGroupNames(DateTime start, DateTime end, Func<object, bool> filter, TimeZoneInfo timeZone)
Parameters:startDateTime

The start date. This is the first group in the group names.

endDateTime

The end date. This is the last group in the group names.

filterFunc<object, bool>

The filter function that could filter date generation.

timeZoneTimeZoneInfo

The time zone.

Generates groups based on the given date range and filter.

C#
public void CreateGroupNames(DateTime start, DateTime end, Func<object, bool> filter)
Parameters:startDateTime

The start date. This is the first group in the group names.

endDateTime

The end date. This is the last group in the group names.

filterFunc<object, bool>

The filter function that could filter date generation.

Generates groups based on the given date range.

C#
public void CreateGroupNames(DateTime start, DateTime end)
Parameters:startDateTime

The start date. This is the first group in the group names.

endDateTime

The end date. This is the last group in the group names.

Returns the group name(s) for the given item.

C#
public override object GroupNameFromItem(object item, int level, CultureInfo culture)
Parameters:itemobject

The item to return group names for.

levelint

The level of grouping.

cultureCultureInfo

The System.Globalization.CultureInfo to supply to the converter.

Returns:

object

The group name(s) for the given item.