AppointmentWrapper
Exposes appointment data as bindable values for the Scheduler navigator's search-results grid.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class AppointmentWrapper : INotifyPropertyChanged
Inheritance: objectAppointmentWrapper
Derived Classes:
Implements:
Constructors
Creates a binding wrapper for an appointment and subscribes to its property-change notifications.
public AppointmentWrapper(Appointment appointment, RadScheduler schedulerData)
The appointment whose values will be exposed.
schedulerDataRadSchedulerThe Scheduler that provides resource and background data.
Fields
The appointment whose values are exposed by this wrapper.
protected Appointment appointment
The Scheduler used to resolve the appointment's resource and background information.
protected RadScheduler schedulerData
Properties
Gets a representative color for the appointment background. Gradient backgrounds use the midpoint of their two colors; missing or unassigned backgrounds produce Transparent.
public Color Background { get; }
Gets or sets the appointment description displayed in the search results.
public string Description { get; set; }
Gets the appointment end time for display in the search results.
public virtual DateTime End { get; }
Gets the appointment location displayed in the search results.
public string Location { get; }
Gets the localized recurrence frequency label for the appointment, using its master event's rule when needed. Minutely and hourly rules both use the hourly label; an absent or unsupported rule uses the BackgroundNone label.
public string Recurrence { get; }
Gets the localized text for the appointment's reminder interval.
public string Reminder { get; }
Gets the name of the appointment's assigned resource, or an empty string when it has no resource.
public string Resource { get; }
Gets the appointment start time for display in the search results.
public virtual DateTime Start { get; }
Methods
Gets the representative color used for the appointment's background in the search results. Solid backgrounds use their first color; supported gradients use the RGB midpoint of their two colors. Returns Transparent when the Scheduler, appointment, or assigned background is unavailable.
Gets the display name of the appointment's assigned background, or an empty string when none is assigned.
Formats a reminder interval using the Scheduler's localized unit strings. Exact one-week intervals use the one-week label; longer exact week multiples use the day suffix with the week count. Null, zero, and intervals not matched by a supported unit branch use the no-reminder label.
Events
Occurs when a property of the wrapped appointment changes. The event arguments contain the property name reported by the appointment.
public event PropertyChangedEventHandler PropertyChanged
Implements: