New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

The class holding the settings for the RadDateInput control which are used to determine the date input behavior.

Definition

Constructors

C#
public DateInputSetting()

Properties

Gets or sets the culture used by RadDateSetting to format the date.

C#
public CultureInfo Culture { get; set; }
Property Value:

A CultureInfo object that represents the current culture used. The default value is System.Threading.Thread.CurrentThread.CurrentUICulture.

Implements: IRadDateInput.Culture

Example:
C#
<p></p>
<p></p>

Gets or sets the date and time format used by RadDateSetting.

C#
public virtual string DateFormat { get; set; }
Property Value:

A string specifying the date format used by RadDateSetting. The default value is "d" (short date format).

Implements: IRadDateInput.DateFormat

Gets or sets the display date format used by RadDateSetting.(Visible when the control is not on focus.)

C#
public virtual string DisplayDateFormat { get; set; }
Property Value:

A string specifying the display date format used by RadDateSetting. The default value is "d" (short date format). If the DisplayDateFormat is left blank, the DateFormat will be used both for editing and display.

Gets or sets the largest date value allowed by RadDateSetting.

C#
public DateTime MaxDate { get; set; }
Property Value:

A DateTime object that represents the largest date value allowed by RadDateSetting. The default value is 12/31/2099.

Gets or sets the smallest date value allowed by RadDateSetting.

C#
public DateTime MinDate { get; set; }
Property Value:

A DateTime object that represents the smallest date value by RadDateSetting. The default value is 1/1/1980.

Gets or sets a value that indicates the end of the century that is used to interpret the year value when a short year (single-digit or two-digit year) is entered in the input.

C#
public int ShortYearCenturyEnd { get; set; }
Property Value:

The year when the century ends. Default is 2029.

Implements: IRadDateInput.ShortYearCenturyEnd

Methods

C#
protected bool TryParseDate(TextBox input, out DateTime date)
Parameters:inputTextBoxdateDateTimeReturns:

bool

Validates the specified TextBox control with supplied context.

C#
public override void Validate(TextBox input, object context)
Parameters:inputTextBox

The TextBox control.

contextobject

The context.

Overrides: InputSetting.Validate(TextBox, object)

Validates the specified TextBox control.

C#
public override void Validate(TextBox input)
Parameters:inputTextBox

The TextBox control.

Overrides: InputSetting.Validate(TextBox)