SchedulerHolidays
Stores holidays for a scheduler, supports lookup by date, and can create all-day appointments for added holidays.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class SchedulerHolidays : IEnumerable
Inheritance: objectSchedulerHolidays
Implements:
Constructors
Creates a holiday collection associated with the specified scheduler.
public SchedulerHolidays(RadScheduler scheduler)
The scheduler whose appointment factory and collection are used when holiday appointments are requested.
Fields
Specifies the characters used to split date fields in HOL records; the default separator is /.
protected char[] holidayDateSeparator
The resulting values are passed to the selected calendar as year, month, and day.
Specifies the character used to separate fields in a HOL record; the default delimiter is ,.
protected char[] holidayLineSeparator
Methods
Clear the Holidays collections. This does not affect already created appointments.
public void Clear()
Returns an enumerator over the stored holidays.
public IEnumerator<Holiday> GetEnumerator()
IEnumerator<Holiday>
An enumerator for the holiday collection.
Read the holidays information and create Holidays objects in the holidays collection only for holidays in the specific locations. Optionally can create also and all day appointments for the holidays.
public void ReadHolidays(Stream stream, bool createAppointment, IEnumerable<string> locations)
The input stream containing HOL-formatted holiday data.
createAppointmentboolIf true this will be create an appointments for each holidays.
locationsIEnumerable<string>Collection with locations.
The stream is disposed when this method returns.
Read the holidays information and create Holidays objects in the holidays collection. Optionally can create also and all day appointments for the holidays.
Read the holidays information and create Holidays objects in the holidays collection only for holidays in the specific locations. Optionally can create also and all day appointments for the holidays.
public void ReadHolidays(string fileName, bool createAppointment, IEnumerable<string> locations)
File name. File must be in HOL format.
createAppointmentboolIf true this will be create an appointments for each holidays.
locationsIEnumerable<string>Collection with locations.
Read the holidays information and create Holidays objects in the holidays collection. Optionally can create also and all day appointments for the holidays.