Calendar
- 2 minutes to read
The BootstrapCalendar control allows end-users to select dates and navigate through months and years.
Bootstrap Calendar offers the following features:
Multiple Date Selection
Bootstrap Calendar allows end-users to work in single or multiple date selection mode. This can be defined with the ASPxCalendar.EnableMultiSelect property.
Date Highlighting
Weekends and today can be highlighted in standard or custom ways.
Multi-Month View
The Bootstrap Calendar editor is able to display multiple months at the same time, organizing them in several rows and columns. You can define the number of columns via the ASPxCalendar.Columns property and the number of rows via the ASPxCalendar.Rows property.
Custom Day Rendering
The Bootstrap Calendar editor allows you to conditionally change the manner in which you render calendar days.
Built-in Validation
The ASPxCalendar control allows you to perform data validation both on the client and server side.
Full-Featured Client-Side API
Bootstrap Calendar provides you with a comprehensive client-side API. This API is implemented using JavaScript and is exposed via the BootstrapClientCalendar object. The BootstrapClientCalendar object serves as a client-side equivalent of the BootstrapCalendar control.
You can modify the editor behavior using the following methods.
Method Description ASPx Client Calendar. Clear Selection Deselects all the selected dates within the calendar. ASPx Client Calendar. Deselect Date Deselects the specified date within the calendar. ASPx Client Calendar. Deselect Range Deselects the specified range of dates within the calendar. ASPx Client Calendar. Get Max Date Gets the maximum date on the calendar. ASPx Client Calendar. Get Min Date Gets the minimum date on the calendar. ASPx Client Calendar. Get Selected Date Returns the calendar’s selected date. ASPx Client Calendar. Get Selected Dates Returns a list of dates which are selected within the calendar. ASPx Client Calendar. Get Visible Date Gets the date that determines the month and year that are currently displayed in the calendar. ASPx Client Calendar. Is Date Selected Tests whether the specified date is selected. ASPx Client Calendar. Select Date Selects the specified date within the calendar. ASPx Client Calendar. Select Range Selects the specified range of dates within the calendar. ASPx Client Calendar. Set Max Date Sets the maximum date of the calendar. ASPx Client Calendar. Set Min Date Sets the minimum date of the calendar. ASPx Client Calendar. Set Selected Date Sets the calendar’s selected date. ASPx Client Calendar. Set Visible Date Sets the date that specifies the month and year to be displayed in the calendar.