Back to Devexpress

ASPxDateEdit.CalendarDayCellInitialize Event

aspnet-devexpress-dot-web-dot-aspxdateedit-619ed27e.md

latest4.3 KB
Original Source

ASPxDateEdit.CalendarDayCellInitialize Event

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

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event EventHandler<CalendarDayCellInitializeEventArgs> CalendarDayCellInitialize
vb
Public Event CalendarDayCellInitialize As EventHandler(Of CalendarDayCellInitializeEventArgs)

Event Data

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

PropertyDescription
DateGets the cell processed in the calendar. Inherited from CalendarPickerViewCellEventArgs.
DisplayTextGets or sets the processed day cell’s display text.
EncodeHtmlGets or sets a value that specifies whether the cell display text keeps any of its values that are HTML as HTML, or instead, strips out the HTML markers.
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 or sets a value that indicates whether the processed date is a weekend day.
NavigateUrlGets or sets a URL that defines the navigation location for the date hyperlink.
NavigateUrlTargetGets or sets the window or frame for which to target the contents of the URL associated with the day cell via the CalendarDayCellInitializeEventArgs.NavigateUrl property.

Remarks

Write a CalendarDayCellInitialize event handler to specify whether the processed day is a weekend day (CalendarDayCellInitializeEventArgs.IsWeekend), change the day text (CalendarDayCellInitializeEventArgs.DisplayText), or set the cell’s hyper link (CalendarDayCellInitializeEventArgs.NavigateUrl) and a target (CalendarDayCellInitializeEventArgs.NavigateUrlTarget).

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

See Also

CalendarDayCellCreated

CalendarDayCellPrepared

Date Editor

ASPxDateEdit Class

ASPxDateEdit Members

DevExpress.Web Namespace