[]
        
(Showing Draft Content)

C1.Web.Mvc.InputDateBase

InputDateBase Class

The base class for the controls which allow the users to type in dates.

Namespace: C1.Web.Mvc
Assembly: C1.Web.Mvc.dll
Syntax
public abstract class InputDateBase : DropDown, IHtmlString, ITemplate, IDropDown

Constructors

Name Description
InputDateBase(HtmlHelper, string)

Creates one InputDateBase instance.

Properties

Name Description
AlwaysShowCalendar

Gets or sets a value that determines whether the calendar should remain visible in the dropdown even when there are selected predefined ranges.

CloseOnSelection

Gets or sets a value that determines whether the control should automatically close the drop-down when the user makes a selection.

Format

Gets or sets the format used to display the selected date.

HandleWheel

Gets or sets a value that determines whether the user can edit the current value using the mouse wheel.

InputType

Gets or sets the "type" attribute of the HTML input element hosted by the control.

IsRequired

Gets or sets a value indicating whether the control value must be a Date or whether it can be set to null (by deleting the content of the control).

ItemFormatter

Gets or sets a formatter function to customize dates in the drop-down calendar.

ItemValidator

Gets or sets the name of a validator javascript function to determine whether dates are valid for selection.

Mask

Gets or sets a mask to use while editing.

Max

Gets or sets the latest date that the user can enter.

Min

Gets or sets the earliest date that the user can enter.

MonthCount

Gets or sets the number of months to display in the drop-down calendar.

OnClientInvalidInput

Occurs when invalid input is detected.

OnClientRangeChanged

Occurs when the value of the rangeEnd property changes into a non-null value, indicating a data range has been selected.

OnClientRangeEndChanged

Occurs when the value of the RangeEnd property changes.

OnClientValueChanged

Occurs after a new date is selected.

PredefinedRanges

Gets or sets a function that return the predefined ranges.

RangeEnd

Gets or sets the last selected date in a range selection.

RangeMax

Gets or sets the maximum length allowed when editing date ranges.

RangeMin

Gets or sets the minimum number of days allowed when editing date ranges.

RepeatButtons

Gets or sets a value that determines whether the calendar buttons should act as repeat buttons, firing repeatedly as the button remains pressed.

SelectionMode

Gets or sets a value that indicates whether users can select days, months, or no values at all.

ShowMonthPicker

Gets or sets a value that determines whether the calendar should display a list of months when the user clicks the header element on the month calendar.

ShowYearPicker

Gets or sets a value that determines whether the calendar should display a list of years when the user clicks the header element on the year calendar.

Value

Gets or sets the current date.

WeeksAfter

Gets or sets the number of weeks to show on the calendar after the current month.

WeeksBefore

Gets or sets the number of weeks to show on the calendar before the current month.

Extension Methods