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