Back to Devexpress

ASPxDateEdit.CalendarDayCellPrepared Event

aspnet-devexpress-dot-web-dot-aspxdateedit-6c3b3388.md

latest3.4 KB
Original Source

ASPxDateEdit.CalendarDayCellPrepared Event

Occurs on the server side before a day cell has been rendered within an ASPxDateEdit control.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event EventHandler<CalendarDayCellPreparedEventArgs> CalendarDayCellPrepared
vb
Public Event CalendarDayCellPrepared As EventHandler(Of CalendarDayCellPreparedEventArgs)

Event Data

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

PropertyDescription
CellGets the currently processed cell of a calendar.
DateGets the cell processed in the calendar. Inherited from CalendarPickerViewCellEventArgs.
IsOtherMonthDayGets a value that indicates whether the processed date is in a month other than the month displayed in the calendar. Inherited from CalendarDayEventArgs.
IsOtherPeriodDateReturns the value that specifies whether the processed cell doesn’t refer to the current period (month, year, century). Inherited from CalendarPickerViewCellEventArgs.
IsSelectedGets whether the cell has been selected. Inherited from CalendarPickerViewCellEventArgs.
IsWeekendGets a value that indicates whether the processed date is a weekend day.
TextControlGets the text control contained within a processed day cell.

Remarks

Write a CalendarDayCellPrepared event handler to customize the cell appearance before it is rendered. To customize the cell appearance, use the CalendarDayCellPreparedEventArgs.Cell and CalendarDayCellPreparedEventArgs.TextControl properties.

Other event parameter’s properties can be used to get the additional information about the processed day.

See Also

CalendarDayCellInitialize

CalendarDayCellCreated

Date Editor

ASPxDateEdit Class

ASPxDateEdit Members

DevExpress.Web Namespace