Version

DatePickerOptions Class Properties

For a list of all members of this type, see DatePickerOptions members.

Public Properties
 NameDescription
Public PropertyChangeMonthWhether the month should be rendered as a dropdown instead of text.  
Public PropertyChangeYearWhether the year should be rendered as a dropdown instead of text. Use the YearRange option to control which years are made available for selection.  
Public PropertyClientEventsSet implementations of client events raised by a widget.

Event handler assumes 2 parameters: 1st parameter has name "evt" and 2nd parameter has name "ui". To get information about member variables available for "ui" parameter, please consult documentation of a widget and its events.

Examples:

1. Full implementation:

new Dictionary<string, string> { { "dropDownOpening", "function(evt,ui){alert('drop:'+ui.owner);}" } }

2. Content of inline function:

new Dictionary<string, string> { { "dropDownOpening", "alert('drop:'+ui.owner);" } }

3. Name of global function:

new Dictionary<string, string> { { "dropDownOpening", "nameOfGlobalFunction" } } Note:

Instead of explicit key-strings, which represent name of event exposed by a widget, the event-constants defined by a particular control can be used.

Example:

new Dictionary<string, string> { { ComboClientEvents.DropDownOpening, "nameOfGlobalFunction" } } (Inherited from Infragistics.Web.Mvc.ModelWidgetBase)
Public PropertyCloseTextThe text to display for the close link. Use the ShowButtonPanel option to display this button.  
Public PropertyCurrentTextThe text to display for the current day link. Use the ShowButtonPanel option to display this button.  
Public PropertyDayNamesMinThe list of minimised day names, starting from Sunday, for use as column headers within the datepicker.  
Public PropertyDefaultDateSet the date to highlight on first opening if the field is blank. Relative date that contains value and period pairs; valid periods are "y" for years, "m" for months, "w" for weeks, and "d" for days. For example, "+1m +7d" represents one month and seven days from today.  
Public PropertyFirstDaySet the first day of the week using the following days enumeration.  
Public PropertyGoToCurrentWhen true, the current day link moves to the currently selected date instead of today.  
Public PropertyHideIfNoPrevNextNormally the previous and next links are disabled when not applicable. You can hide them altogether by setting this attribute to true.  
Public PropertyIsRTLWhether the current language is drawn from right to left.  
Public PropertyMaxDateThe maximum selectable date. Relative date that contains value and period pairs; valid periods are "y" for years, "m" for months, "w" for weeks, and "d" for days. For example, "+1m +7d" represents one month and seven days from today.  
Public PropertyMinDateThe minimum selectable date. Relative date that contains value and period pairs; valid periods are "y" for years, "m" for months, "w" for weeks, and "d" for days. For example, "+1m +7d" represents one month and seven days from today.  
Public PropertyMonthNamesShortThe list of abbreviated month names, as used in the month header on each datepicker.  
Public PropertyNextTextThe text to display for the next month link. With the standard ThemeRoller styling, this value is replaced by an icon.  
Public PropertyNumberOfMonthsThe number of months to show at once.  
Public PropertyPrevTextThe text to display for the previous month link. With the standard ThemeRoller styling, this value is replaced by an icon.  
Public PropertySelectOtherMonthsWhether days in other months shown before or after the current month are selectable. This only applies if the ShowOtherMonths option is set to true.  
Public PropertyShowAnimThe name of the animation used to show and hide the datepicker. Use one of the following animation effects.  
Public PropertyShowButtonPanelWhether to display a button pane underneath the calendar. The button pane contains two buttons, a Today button that links to the current day, and a Done button that closes the datepicker. The buttons' text can be customized using the CurrentText and CloseText options respectively.  
Public PropertyShowCurrentAtPosWhen displaying multiple months via the NumberOfMonths option, the showCurrentAtPos option defines which position to display the current month in.  
Public PropertyShowMonthAfterYearWhether to show the month after the year in the header.  
Public PropertyShowOptionsAdditional properties for the provided animation.  
Public PropertyShowOtherMonthsWhether to display dates in other months (non-selectable) at the start or end of the current month. To make these days selectable use the SelectOtherMonths option.  
Public PropertyShowWeekWhen true, a column is added to show the week of the year. If the calculateWeek handler is defined, it determines how the week of the year is calculated.  
Public PropertyStepMonthsSet how many months to move when clicking the previous/next links.  
Public PropertyWeekHeaderThe text to display for the week of the year column heading. Use the showWeek option to display this column.  
Public PropertyYearRangeThe range of years displayed in the year drop-down: either relative to today's year ("-nn:+nn"), relative to the currently selected year ("c-nn:c+nn"), absolute ("nnnn:nnnn"), or combinations of these formats ("nnnn:-nn"). Note that this option only affects what appears in the drop-down, to restrict which dates may be selected use the MinDate and/or MaxDate options.  
Public PropertyYearSuffixAdditional text to display after the year in the month headers.  
Protected Properties
 NameDescription
Protected PropertyStoreReturn the store with all of the options (Inherited from Infragistics.Web.Mvc.ModelBase)
See Also

View on GitHub