Class
CustomRange

Predefined date time range that can be used for easier UI selection.

Definition

Namespace:Telerik.Windows.Controls.DateRangePicker

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
public class CustomRange

Inheritance: objectCustomRange

Constructors

CustomRange()

Initializes a new instance of the CustomRange class.

Declaration

cs-api-definition
public CustomRange()

CustomRange(string)

Initializes a new instance of the CustomRange class.

Declaration

cs-api-definition
public CustomRange(string name)

Parameters

name

string

Custom range UI label.

Properties

EndDate

Gets or sets the end date of the range.

Declaration

cs-api-definition
public DateTime? EndDate { get; set; }

Property Value

DateTime?

IsSelectedByDefault

Gets or sets a value indicating whether the custom range should be selected by default. In multiple ranges scenarios, the last one with this property set to true will be selected.

Declaration

cs-api-definition
public bool IsSelectedByDefault { get; set; }

Property Value

bool

Name

Gets or sets the UI name (label) of the range.

Declaration

cs-api-definition
public string Name { get; set; }

Property Value

string

StartDate

Gets or sets the start date of the range.

Declaration

cs-api-definition
public DateTime? StartDate { get; set; }

Property Value

DateTime?