AlternateField(string selector, string format)

Sets the selector and format of another field that will be updated with the selected date from the datepicker.

Parameters

selector The jQuery selector for the other field.
format The date format string.

AppendText(string text)

Sets the text to display after the datepicker.

Parameters

text The text to display.

AutoSize(bool autoSize)

Sets a value indicating whether the datepicker should automatically resize the input field to accommodate the date.

Parameters

autoSize If true, the datepicker automatically resizes the input field to accommodate the date.

CalculateWeek(string functionName)

Sets the name of the JavaScript function that will be used to calculate the week numbers.

Parameters

functionName The name of the function.

ChangeMonth(bool changeMonth)

Sets a value indicating whether to show the month drop-down list.

Parameters

changeMonth If true, the month drop-down list is visible.

ChangeYear(bool changeYear)

Sets a value indicating whether to show the year drop-down list.

Parameters

changeYear If true, the year drop-down list is visible.

ChangeYear(JQueryUIHelpers.YearDefinition from, JQueryUIHelpers.YearDefinition to)

Shows the year-drop down and defines its range.

Parameters

from The lowest year in the drop-down.
to The highest year in the drop-down.

CloseText(string text)

Sets the text of the close button.

Parameters

text The text of the close button.

ConstrainInput(bool constraintInput)

Sets a value indicating whether to constrain entry in the input field to the current date format.

Parameters

constraintInput If true, entry in the input field is constrained to those characters allowed by the current date format.

CurrentText(string text)

Sets the text of current day button.

Parameters

text The text of the current day button.

DateFormat(string format)

Sets the format for parsed and displayed dates.

Parameters

format The date format string. This should be a valid .NET date format string

DayNames(string[] names)

Sets the full names of the days (e.g. Sunday, Monday).

Parameters

names The name list containing exactly 7 names, starting from Sunday.

DayNamesMin(string[] names)

Sets the minimum names of the days (e. g. Su, Mo).

Parameters

names The name list containing exactly 7 names, starting from Sunday.

DayNamesShort(string[] names)

Sets the short names of the days (e. g. Sun, Mon).

Parameters

names The name list containing exactly 7 names, starting from Sunday.

DefaultDate(int daysFromToday)

Sets the date to highlight on the first opening if the field is blank.

Parameters

daysFromToday The date definition as a number of days from today.

DefaultDate(System.DateTime date)

Sets the date to highlight on the first opening if the field is blank.

Parameters

date The date.

DefaultDate(JQueryUIHelpers.DateDifference difference)

Sets the date to highlight on the first opening if the field is blank.

Parameters

difference The date definition as a difference from today.

Disabled(bool disabled)

Sets a value indicating whether the datepicker is disabled.

Parameters

disabled If true, the datepicker is disabled.

FirstDay(uint day)

Sets the first day of the week.

Parameters

day The number of the first day. Sunday is 0, Monday is 1, ...

GotoCurrent(bool gotoCurrent)

Sets a value indicating whether the current day button should move to the currently selected date.

Parameters

gotoCurrent If true, the current day button moves to the currently selected date instead of today.

HideIfNoPrevNext(bool hideIfNoPrevNext)

Sets a value indicating whether to show the previous and next links when they are not applicable.

Parameters

hideIfNoPrevNext If true, the previous and next links are hidden when they are not applicable, otherwise they are just disabled.

IsRtl(bool isRtl)

Sets a value indicating whether the current language is drawn from right to left.

Parameters

isRtl If true, the current language is drawn from right to left.

MaxDate(int daysFromToday)

Sets the maximum selectable date.

Parameters

daysFromToday The date definition as a number of days from today.

MaxDate(System.DateTime date)

Sets the maximum selectable date.

Parameters

date The date.

MaxDate(JQueryUIHelpers.DateDifference difference)

Sets the maximum selectable date.

Parameters

difference The date definition as a difference from today.

MinDate(int daysFromToday)

Sets the minimum selectable date.

Parameters

daysFromToday The date definition as a number of days from today.

MinDate(System.DateTime date)

Sets the minimum selectable date.

Parameters

date The date.

MinDate(JQueryUIHelpers.DateDifference difference)

Sets the minimum selectable date.

Parameters

difference The date definition as a difference from today.

MonthNames(string[] names)

Sets the full names of the months (e.g. January, February).

Parameters

names The name list containing exactly 12 names, starting from January.

MonthNamesShort(string[] names)

Sets the short names of the months (e.g. Jan, Feb).

Parameters

names The name list containing exactly 12 names, starting from January.

NavigationAsDateFormat(bool navigationAsDateFormat)

Sets a value indicating whether to treat the CurrentText, PrevText and NextText as date format strings.

Parameters

navigationAsDateFormat If true, the CurrentText, PrevText and NextText are treated as date format strings.

NextText(string text)

Sets the text of the next month link.

Parameters

text The text of the next month link.

NumberOfMonths(int numberOfMonths)

Sets the number of months displayed.

Parameters

numberOfMonths The number of months.

NumberOfMonths(int numberOfMonths, int showCurrentAtPosition)

Sets the number of months displayed and the position of the current month.

Parameters

numberOfMonths The number of months.
showCurrentAtPosition The position of the current month, starting from 0.

NumberOfMonths(int rows, int columns, int showCurrentAtPosition)

Sets the number of month rows and columns to display and the position of the current month.

Parameters

rows The number of rows.
columns The number of columns.
showCurrentAtPosition The position of the current month, starting from 0.

PrevText(string text)

Sets the text of the previous month link.

Parameters

text The text of the previous month link.

ShortYearCutoff(uint year)

Sets the cutoff year for determining the century for a date when a 2-digit year format is used. Any dates entered with a year value less than or equal to it are considered to be in the current century, while those greater than it are deemed to be in the previous century.

Parameters

year The cutoff year.

ShowAnimation(JQueryUIHelpers.DatepickerAnimation animation)

Sets the animation used to show or hide the datepicker.

Parameters

animation The animation.

ShowAnimation(JQueryUIHelpers.DatepickerAnimation animation, uint duration)

Sets the animation and its duration used to show or hide the datepicker.

Parameters

animation The animation.
duration The duration in milliseconds.

ShowAnimation(JQueryUIHelpers.DatepickerAnimation animation, JQueryUIHelpers.Duration duration)

Sets the animation and its duration used to show or hide the datepicker.

Parameters

animation The animation.
duration The duration.

ShowButtonPanel(bool showButtonPanel)

Sets a value indicating whether to show the button panel.

Parameters

showButtonPanel If true, the button panel is displayed.

ShowMonthAfterYear(bool showMonthAfterYear)

Sets a value indicating whether to show the month after the year in the display panel.

Parameters

showMonthAfterYear If true, the month is shown after the year.

ShowOn(JQueryUIHelpers.DatepickerShowOn showOn)

Sets the event (focus, trigger button, both) which displays the datepicker.

Parameters

showOn The event.

ShowOn(JQueryUIHelpers.DatepickerShowOn showOn, string imageUrl, string text, bool imageOnly)

Sets the event (focus, trigger button, both) which displays the datepicker and the parameters of the button. The button parameters have no effect if the first parameter is set to DatepickerShowOn.Focus.

Parameters

showOn The event.
imageUrl The URL of the trigger button image.
text The text of the trigger button.
imageOnly If true the image is used as a trigger button.

ShowOtherMonths(JQueryUIHelpers.OtherMonths otherMonths)

Sets how dates in other months are displayed.

Parameters

otherMonths The state of the dates in other months.

ShowWeek(bool showWeek)

Sets a value indicating whether to show the numbers of the weeks.

Parameters

showWeek If true, the week numbers are displayed.

StepMonths(int months)

Sets how many months to move when clicking the previous or next links.

Parameters

months The number of months to step.

WeekHeader(string text)

Sets the text of the week header.

Parameters

text The text of the week header.

YearSuffix(string text)

Sets the text to display after the year in the datepicker header.

Parameters

text The year suffix.

Inline(bool inline)

Sets a value indicating whether the datepicker should be displayed inline.

Parameters

inline If true, the datepicker is displayed inline.

OnBeforeShow(string functionName)

Sets the name of the JavaScript function that is triggered before the datepicker is displayed.

Parameters

functionName The name of the function.

OnBeforeShowDay(string functionName)

Sets the name of the JavaScript function that is triggered before a day is displayed. Called for each day in the datepicker.

Parameters

functionName The name of the function.

OnChangeMonthYear(string functionName)

Sets the name of the JavaScript function that is triggered when the datepicker move to a new month and/or year.

Parameters

functionName The name of the function.

OnClose(string functionName)

Sets the name of the JavaScript function that is triggered when the datepicker is closed.

Parameters

functionName The name of the function.

OnSelect(string functionName)

Sets the name of the JavaScript function that is triggered when a date is selected.

Parameters

functionName The name of the function.