ASPxCalendar.DayCellCreated Event
Occurs on the server side after a day cell has been created.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Event Data
The DayCellCreated event's data class is CalendarDayCellCreatedEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Controls | Gets a control collection contained within a created day cell. |
Date | Gets the cell processed in the calendar. Inherited from CalendarPickerViewCellEventArgs. |
IsOtherMonthDay | Gets a value that indicates whether the processed date is in a month other than the month displayed in the calendar. Inherited from CalendarDayEventArgs. |
IsOtherPeriodDate | Returns the value that specifies whether the processed cell doesn’t refer to the current period (month, year, century). Inherited from CalendarPickerViewCellEventArgs. |
IsSelected | Gets whether the cell has been selected. Inherited from CalendarPickerViewCellEventArgs. |
IsWeekend | Gets a value that indicates whether the processed date is a weekend day. |
Remarks
The DayCellCreated event serves as a notification that a day cell has been added to a control’s hierarchy. You can handle this event to populate the cell with custom controls using the event parameter’s CalendarDayCellCreatedEventArgs.Controls property.
You can use the event parameter’s properties to get additional information about the processed day.
Note
The controls from the CalendarDayCellCreatedEventArgs.Controls collection can be used to display data only, i.e., you cannot use them to edit data.