aspnet-11478-components-scheduler-concepts-appointments-reminders-for-appointments.md
This document introduces the Reminder for Appointments concept and describes how to create and handle reminders. It also contains a code sample that shows how to utilize reminders in ASPxScheduler.
An appointment can have one or more reminders. They are responsible for sending alerts at specified time periods before an appointment’s start time. An appointment displays the image if it has a reminder. The ASPxScheduler Suite provides an abstract ReminderBase class, which implements the basic reminder functionality and two derived classes - Reminder for AppointmentType.Normal type appointments and RecurringReminder for recurring appointments.
You can create a reminder for a particular appointment programmatically or using an appointment’s editing form.
There are two ways to create a reminder via code.
true to create a new reminder with default parameters and associate it with the appointment.To access the appointment’s reminders, use the Appointment.Reminder property. This returns the first reminder in a collection or the Appointment.Reminders property, which gets all an appointment’s reminders.
A reminder invokes the following notification dialog at the specified alert time:
An end-user can implement the following actions using the dialog:
If an occurrence is in the future:
If a recurring appointment is in the past (such occurrences do not have reminders):
The following table lists the main properties, methods, and events which implement a Reminder’s basic functionality:
| Member Name | Description |
|---|---|
| Availability | |
| AppointmentStorageBase.SupportsReminders property | Informs you whether reminder info mapping exists so the storage can operate with reminders (relevant for the bound mode ). |
| SchedulerStorageBase.EnableReminders property | Allows you to specify whether reminder operations are allowed. |
| SchedulerStorageBase.RemindersEnabled property | Indicates whether reminders are enabled (supported AND allowed). |
| Appointment Information | |
| Reminder.Appointment property | Gets the appointment to which the reminder is applied. |
| Reminder.Subject property | Gets the subject text of the appointment to which the reminder is applied. |
| Alert Options | |
| ReminderBase.AlertTime property | Gets the reminder’s alert time. |
| ReminderBase.TimeBeforeStart property | Gets or sets the time interval before the appointment’s start time. |
| Alert Handling | |
| ASPxSchedulerDataWebControlBase.ReminderAlert event. | Occurs when a reminder is triggered. |
| ReminderBase.Dismiss method | Switches the reminder off for the associated appointment. |
| ReminderBase.Snooze method | Notifies the scheduler to stop the specified interval from triggering a reminder. |
| SchedulerStorageBase.RemindersCheckInterval property | Gets or sets the time interval a reminder’s alert time should be checked (in milliseconds). |
| SchedulerStorageBase.TriggerAlerts method | Triggers alerts immediately. |
| Reminders Form | |
| ASPxScheduler.RemindersFormShowing event | Occurs before the Reminders form is displayed. |
| ASPxScheduler.RemindersFormDefaultAction event. | Occurs when an end-user closes the Reminders Form without clicking the Dismiss or Snooze button. |
| ASPxSchedulerOptionsForms.RemindersFormTemplateUrl property. | Gets or sets a template location for the form used to edit the current appointment’s associated alert. |