Glossary Item Box
Calendar has some client-side events:
| Client-side event | Description |
| onBeforeChange | Occurs when the selected date is about to be changed. |
| onChange | Occurs when the selected date is changed. |
| onIsNotValid | Occurs when the user tries to select an invalid date. |
Client-side API functions list:
| Function name | Description |
| al_Calendar_SetMinDate(clientID, year, month, day) | Setting new minimal date for the calendar. The date sets only on client side and doesn't change any server settings. |
| al_Calendar_SetMaxDate(clientID, year, month, day) | Setting new maximal date for the calendar. The date sets only on client side and doesn't change any server settings. |
| al_Calendar_SetEnable(clientID, isEnable) | Enables or disables the control with given identifier clientID, new state sets with isEnable value |
| al_Calendar_IsEnabled(clientID) | Returns is the control enabled or not |
| al_Calendar_SetVisible(clientID, visible) | Shows or hides the control with identifier clientID, new state depends on isVisible value |
| al_Calendar_IsVisible(clientID) | Returns is the control visible or not |
| al_Calendar_GetValue(clientID) | Gets the control's date - returns the JavaScript Date object with selected date or null if nothing selected |
| al_Calendar_SetValue(clientID, year, month, day) | Sets the control's date - set year to year, month to month, day to day |
| See Also |
Overview: Overview