-
Notifications
You must be signed in to change notification settings - Fork 144
CalendarExtender
The Calendar control extender can be attached to any ASP.NET TextBox control. It provides client-side date-picking functionality with a customizable date format and UI in a popup control.
| Name | Description |
|---|---|
| Animated | Sets whether or not changing modes is animated. The default value is true |
| ClearTime | Sets whether or not time should be cleared in edited date/time. The default value is false |
| CssClass | The name of the Cascading Style Sheet class used to style the calendar. |
| DaysModeTitleFormat | A format string used to display the Days Mode Title. The default value is MMMM, yyyy. |
| DefaultView | The default view of the calender. The default value is Days. |
| EnabledOnClient | Sets whether or not this behavior is available for the current element. The default value is true |
| EndDate | The end date for a range. |
| FirstDayOfWeek | The first day of the week. The default value is Default |
| Format | A format string used to display the selected date. The default value is d |
| OnClientDateSelectionChanged | A script that is executed when a new date is selected. |
| OnClientHidden | A client script that is executed immediately after the calendar is hidden. |
| OnClientHiding | A client script that is executed immediately before the calendar is hidden. |
| OnClientShowing | A client script that is executed immediately before the calendar is displayed. |
| OnClientShown | A client script that is executed immediately after the calendar is displayed. |
| PopupButtonID | The ID of a control to show the calendar popup when clicked. If this value is not set, the calendar will pop up when the textbox receives focus. |
| PopupPosition | The popup position of the calendar. The default value is BottomLeft. |
| SelectedDate | The date that the calendar is initialized with. |
| StartDate | The start date for a range. |
| TodaysDateFormat | A format string used to display today's date. The default value is MMMM d, yyyy. |
| Name | Description |
|---|---|
| animated | Sets whether or not changing modes is animated. The default is true |
| button | The button to use to show the calendar (optional). |
| clearTime | Determines whether or not time should be cleared in the edited date/time. The default is false |
| cssClass | The name of a CSS class used to style the calendar. The default value is ajax__calendar |
| dayCell | Gets a day cell at the specified row or column |
| daysModeTitleFormat | A format string used to display Days Mode Title. The default value is MMMM, yyyy. |
| defaultView | The default view of the calender. The default value is Days. |
| enabled | Determines whether or not this behavior is available for the current element. |
| endDate | The end date for a range. |
| firstDayOfWeek | The first day of the week. The default value is Default |
| format | A format string used to display the selected date. The default value is d |
| isOpen | Determines whether or not the calendar is open. The default value is false |
| popupPosition | The popup position of the calendar. The default is BottomLeft |
| selectedDate | A date that the calendar is initialized with. |
| startDate | The start date for the range. |
| todayButton | The button used to select today's date. |
| todaysDate | The date to use for "Today". |
| todaysDateFormat | A format string used to display today's date. The default value is MMMM d, yyyy. |
| visibleDate | The date currently visible in the calendar. |
| Name | Description |
|---|---|
| blur() | Blurs the calendar. |
| focus() | Focuses the calendar. |
| hide() | Hides the calendar. |
| show() | Shows the calendar. |
| Name | Description |
|---|---|
| dateSelectionChanged | Fires when calendar date selection is changed. |
| hidden | Fires after the calendar is hidden. |
| hiding | Fires when the calendar is being hidden. |
| showing | Fires when the calendar is being shown. |
| shown | Fires after the calendar is shown. |
Sets whether or not changing modes is animated. The default is true
Getter name: get_animated()
Setter name: set_animated(value)
The button to use to show the calendar (optional).
Getter name: get_button()
Setter name: set_button(value)
Determines whether or not time should be cleared in the edited date/time. The default is false
Getter name: get_clearTime()
Setter name: set_clearTime(value)
The name of a CSS class used to style the calendar. The default value is ajax__calendar
Getter name: get_cssClass()
Setter name: set_cssClass(value)
Gets a day cell at the specified row or column
Getter name: get_dayCell()
A format string used to display Days Mode Title. The default value is MMMM, yyyy.
Getter name: get_daysModeTitleFormat()
Setter name: set_daysModeTitleFormat(value)
The default view of the calender. The default value is Days.
Getter name: get_defaultView()
Setter name: set_defaultView(value)
Determines whether or not this behavior is available for the current element.
Getter name: get_enabled()
Setter name: set_enabled(value)
The end date for a range.
Getter name: get_endDate()
Setter name: set_endDate(value)
The first day of the week. The default value is Default
Getter name: get_firstDayOfWeek()
Setter name: set_firstDayOfWeek(value)
A format string used to display the selected date. The default value is d
Getter name: get_format()
Setter name: set_format(value)
Determines whether or not the calendar is open. The default value is false
Getter name: get_isOpen()
The popup position of the calendar. The default is BottomLeft
Getter name: get_popupPosition()
Setter name: set_popupPosition(value)
A date that the calendar is initialized with.
Getter name: get_selectedDate()
Setter name: set_selectedDate(value)
The start date for the range.
Getter name: get_startDate()
Setter name: set_startDate(value)
The button used to select today's date.
Getter name: get_todayButton()
The date to use for "Today".
Getter name: get_todaysDate()
Setter name: set_todaysDate(value)
A format string used to display today's date. The default value is MMMM d, yyyy.
Getter name: get_todaysDateFormat()
Setter name: set_todaysDateFormat(value)
The date currently visible in the calendar.
Getter name: get_visibleDate()
Setter name: set_visibleDate(value)
Blurs the calendar.
Focuses the calendar.
Hides the calendar.
Shows the calendar.
Fires when calendar date selection is changed.
Add event handler method: add_dateSelectionChanged(handler)
Remove event handler method: remove_dateSelectionChanged(handler)
Raise event method: raise_dateSelectionChanged()
Fires after the calendar is hidden.
Add event handler method: add_hidden(handler)
Remove event handler method: remove_hidden(handler)
Raise event method: raise_hidden()
Fires when the calendar is being hidden.
Add event handler method: add_hiding(handler)
Remove event handler method: remove_hiding(handler)
Raise event method: raise_hiding()
Fires when the calendar is being shown.
Add event handler method: add_showing(handler)
Remove event handler method: remove_showing(handler)
Raise event method: raise_showing()
Fires after the calendar is shown.
Add event handler method: add_shown(handler)
Remove event handler method: remove_shown(handler)
Raise event method: raise_shown()
This content was moved from https://ajaxcontroltoolkit.codeplex.com/documentation to this Documentation wiki. This is now the authoritative location of the AJAX Control Toolkit documentation.
- Step-by-Step Installation Guide
- Upgrading from v7.x and below
- Uninstalling the AJAX Control Toolkit
- Troubleshooting Installer Issues
- Updating the Project from CI Builds
- How to Use Bundling and CDN
- Creating a Custom Localization
- Creating a Custom Control
- Design Standards
Controls:
- Accordion
- AjaxFileUpload
- AreaChart
- AsyncFileUpload
- BarChart
- BubbleChart
- ComboBox
- Editor (deprecated)
- Gravatar
- LineChart
- NoBot
- PieChart
- Rating
- ReorderList
- Seadragon
- TabContainer
- TabPanel
Extenders:
- AlwaysVisibleControl
- Animation
- AutoComplete
- BalloonPopup
- Calendar
- CascadingDropDown
- CollapsiblePanel
- ColorPicker
- ConfirmButton
- DragPanel
- DropDown
- DropShadow
- DynamicPopulate
- FilteredTextBox
- HoverMenu
- HtmlEditor
- ListSearch
- MaskedEdit
- MaskedEditValidator
- ModalPopup
- MultiHandleSlider
- MutuallyExclusiveCheckBox
- NumericUpDown
- PagingBulletedList
- PasswordStrength
- PopupControl
- ResizableControl
- RoundedCorners
- Slider
- SlideShow
- TextBoxWatermark
- ToggleButton
- UpdatePanelAnimation
- ValidatorCallout