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 ASPxClientCalendar.ClearSelection Deselects all the selected dates within the calendar. ASPxClientCalendar.DeselectDate Deselects the specified date within the calendar. ASPxClientCalendar.DeselectRange Deselects the specified range of dates within the calendar. ASPxClientCalendar.GetMaxDate Gets the maximum date on the calendar. ASPxClientCalendar.GetMinDate Gets the minimum date on the calendar. ASPxClientCalendar.GetSelectedDate Returns the calendar’s selected date. ASPxClientCalendar.GetSelectedDates Returns a list of dates which are selected within the calendar. ASPxClientCalendar.GetVisibleDate Gets the date that determines the month and year that are currently displayed in the calendar. ASPxClientCalendar.IsDateSelected Tests whether the specified date is selected. ASPxClientCalendar.SelectDate Selects the specified date within the calendar. ASPxClientCalendar.SelectRange Selects the specified range of dates within the calendar. ASPxClientCalendar.SetMaxDate Sets the maximum date of the calendar. ASPxClientCalendar.SetMinDate Sets the minimum date of the calendar. ASPxClientCalendar.SetSelectedDate Sets the calendar’s selected date. ASPxClientCalendar.SetVisibleDate Sets the date that specifies the month and year to be displayed in the calendar.