New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

RadCalendarDay represents a object that maps date value to corresponding visual settings. Also the object implements Boolean properties that represent the nature of the selected date - whether it is a weekend, disabled or selected in the context of the calendar. Mostly the values of those properties are set at runtime when a RadCalendarDay instance is constructed and passed to the DayRender event.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[SuppressMessage("Microsoft.Design", "CA1001:TypesThatOwnDisposableFieldsShouldBeDisposable")]
public class RadCalendarDay : RichUITemplateControl, IStateManager

Inheritance: objectPropertiesObjectRichUITemplateControlRadCalendarDay

Implements: IStateManager

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadCalendarDay()
C#
public RadCalendarDay(RadCalendar calendar)
Parameters:calendarRadCalendar

Properties

Gets or sets the date represented by this RadCalendarDay.

C#
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Date")]
public virtual DateTime Date { get; set; }

Gets or sets a value indicating whether the RadCalendarDay is disabled

C#
public bool IsDisabled { get; set; }

Gets or sets a value indicating whether the RadCalendarDay is qualified as available for selection.

C#
public bool IsSelectable { get; set; }

Gets or sets a value indicating whether the RadCalendarDay is selected

C#
public bool IsSelected { get; set; }

Gets or sets a value indicating whether the RadCalendarDay represents the current date.

C#
public bool IsToday { get; set; }

Gets or sets a value indicating whether the RadCalendarDay is mapped to a date that represents a non working day/weekend.

C#
public bool IsWeekend { get; set; }

Gets the style properties for the RadCalendarDay instance.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public TableItemStyle ItemStyle { get; }
Property Value:

A TableItemStyle that contains the style properties for the RadCalendarDay instance.

Gets or sets a value indicating whether the RadCalendarDay settings are repeated/recurring through out the valid date range displayed by the calendar.

C#
public RecurringEvents Repeatable { get; set; }

The RecurringEvents enumeration determines which part of the date is handled (day or day and month).

Gets or sets the text displayed when the mouse pointer hovers over the calendar day.

C#
public string ToolTip { get; set; }

Methods

Determines whether the specified compare time is recurring.

C#
public virtual RecurringEvents IsRecurring(DateTime compareTime, RadCalendar currentCalendar)
Parameters:compareTimeDateTime

The compare time.

currentCalendarRadCalendar

The current calendar.

Returns:

RecurringEvents