Skip to main content

ASPxClientDateEdit.CalendarCustomDisabledDate Event

Allows you to disable the calendar’s days.

Declaration

CalendarCustomDisabledDate: ASPxClientEvent<ASPxClientCalendarCustomDisabledDateEventHandler<ASPxClientDateEdit>>

Event Data

The CalendarCustomDisabledDate event's data class is ASPxClientCalendarCustomDisabledDateEventArgs. The following properties provide information specific to this event:

Property Description
date Gets the date processed in the calendar.
isDisabled Gets or sets a value specifying whether selection of the processed calendar date is disabled.

Remarks

The CalendarCustomDisabledDate event is raised on the server side each time a day cell needs to be rendered within the calendar. You can use the ASPxClientCalendarCustomDisabledDateEventArgs.date event argument property to determine the currently processed day. The ASPxClientCalendarCustomDisabledDateEventArgs.isDisabled property allows you to specify the date avalability for the selection.

Additionally, you can use the ASPxDateEdit.CalendarCustomDisabledDate event to disable dates on the server side. The ASPxDateEdit.DisabledDates property allows you to specify a collection of dates to be disabled in a calendar control.

Note

The CustomDisabledDate event handlers affect the manner in which the calendar is updated (navigates to another month/year).

  • When only the client-side CalendarCustomDisabledDate event is handled, the calendar operates on the client side.
  • When only the server-side ASPxDateEdit.CalendarCustomDisabledDate event is handled, the manner in which the calendar is updated depends upon the ASPxEdit.AutoPostBack property setting. If the ASPxEdit.AutoPostBack property is set to true, the calendar initiates a postback to the server; otherwise, it’s updated using callback technology.
  • When both events are handled, the calendar operates on the client side. However, for the calendar to work properly, you should provide equivalent logic in both the client and server-side event handlers.
See Also