ClassRadCalendarDay
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.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadCalendarDay : INotifyPropertyChanged
Inheritance: objectRadCalendarDay
Implements:
Constructors
RadCalendarDay()
Declaration
public RadCalendarDay()
RadCalendarDay(CalendarDayCollection)
Declaration
public RadCalendarDay(CalendarDayCollection owner)
Parameters
owner
RadCalendarDay(DateTime, CalendarDayCollection)
Declaration
public RadCalendarDay(DateTime date, CalendarDayCollection owner)
Parameters
date
owner
Properties
Date
Gets or sets the date represented by this RadCalendarDay.
Disabled
Gets or sets a value indicating whether the RadCalendarDay is disabled
Image
Gets or sets the image associated with a particular RadCalendarDay object.
Declaration
[Browsable(true)]
public virtual Image Image { get; set; }
Property Value
IsToday
Gets or sets a value indicating whether the RadCalendarDay represents the current date.
IsWeekend
Gets or sets a value indicating whether the RadCalendarDay is mapped to a date that represents a non working day/weekend.
Owner
The owner of RadCalendarDay object.
Declaration
protected CalendarDayCollection Owner { get; set; }
Property Value
Recurring
Gets or sets a value indicating whether the RadCalendarDay settings are repeated/recurring through out the valid date range displayed by the calendar.
Declaration
public RecurringEvents Recurring { get; set; }
Property Value
Remarks
The RecurringEvents enumeration determines which part of the date is handled (day or day and month).
Selectable
Gets or sets a value indicating whether the RadCalendarDay is qualified as available for selection.
Selected
Gets or sets a value indicating whether the RadCalendarDay is selected
TemplateItem
Gets or sets the template associated with a particular RadCalendarDay object. The template must inherit from RadHostItem.
Declaration
[Browsable(true)]
public virtual RadHostItem TemplateItem { get; set; }
Property Value
Methods
CreateDay(DateTime)
Declaration
public static RadCalendarDay CreateDay(DateTime date)
Parameters
date
the DateTime object associated with this particular RadCalendarDay.
Returns
CreateDay(DateTime, CalendarDayCollection)
Declaration
protected static RadCalendarDay CreateDay(DateTime date, CalendarDayCollection owner)
Parameters
date
the DateTime object associated with this particular RadCalendarDay.
owner
the CalendarDayCollection that contains this particular RadCalendarDay.
Returns
IsRecurring(DateTime, Calendar)
Checks whether RadCalendarDay object is associated with a DateTime that represents a recurring event.
Declaration
protected virtual RecurringEvents IsRecurring(DateTime compareTime, Calendar processCalendar)
Parameters
compareTime
the DateTime to compare.
processCalendar
the System.Globalization.Calendar object used to check whether the DateTime represents a recurring event.
Returns
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event.
Declaration
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
e
PropertyChangedEventArgs instance containing the name of the property.
OnNotifyPropertyChanged(string)
Raises the PropertyChanged event.
Declaration
protected virtual void OnNotifyPropertyChanged(string propertyName)
Parameters
propertyName
The name of the property.
SetToday(bool)
Sets whether RadCalendarDay object is associated with a DateTime equal to today's date.
Declaration
protected void SetToday(bool value)
Parameters
value
True if RadCalendarDay object is associated with today's date.
SetWeekend(bool)
Sets whether RadCalendarDay object is associated with a DateTime that represents a weekend day.
Declaration
protected void SetWeekend(bool value)
Parameters
value
True if RadCalendarDay object is associated with a DateTime that represents a weekend day.
TruncateTimeComponent(DateTime)
Removes the time component of a DateTime object, thus leaving only the date part.
Events
PropertyChanged
Occurs when when a property of an object changes change. Calling the event is developer's responsibility.
Declaration
[Browsable(false)]
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements