RadControls for WinForms

A RadCalendarDay object can be configured as a repeating event by setting the Recurring to one of the following RecurringEvents enumeration values.

  1. DayInMonth - Only the day part of the date is taken into account. That gives the ability to serve events repeated every month on the same day.
  2. DayAndMonth - The month and the day part of the date are taken into account. That gives the ability to serve events repeated in specific month on the same day.
  3. Week - The week day is taken into account. That gives the ability to serve events repeated in a specific day of the week.
  4. WeekAndMonth - The week day and the month are taken into account. That gives the ability to serve events repeated in a specific week day in a specific month.
  5. Today - Gives the ability to control the visual appearance of today's day.
  6. None - Default value - means that the day in question is a single point event, no recurrence.

The example below creates a RadCalendarDay and assigns the Date. The Recurring value of DayInMonth causes the day to show for the 5th of every month.

calendar-customizing-behavior-repeating-events 001

Copy[C#] Configuring a recurring event
RadCalendarDay day = new RadCalendarDay();
day.Date = new DateTime(2011, 2, 5, 0, 0, 0, 0);
day.Recurring = RecurringEvents.DayInMonth;
day.Selectable = false;
radCalendar1.SpecialDays.Add(day);
Copy[VB.NET] Configuring a recurring event
Dim day As New RadCalendarDay()
day.Date = New DateTime(2011, 2, 5, 0, 0, 0, 0)
day.Recurring = RecurringEvents.DayInMonth
day.Selectable = False
RadCalendar1.SpecialDays.Add(day)