Telerik RadCalendar provides a RecurringEvents enumeration, that gives the ability to serve repeatable events. Here are the Repeatable members, ordered by their priority:
|
Member |
Description |
|
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. |
|
Today |
Gives the ability to control the visual appearance of today's date. |
| DayAndMonth |
The month and the day part of the date are taken into account. That gives the ability to serve events repeated in a specific month on the same day. |
|
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. |
| Week |
The week day is taken into account. That gives the ability to serve events repeated in a specific day of the week. |
| None |
Default value, means that the day in question is a single point event, no recurrence. |
The code below shows the configuration of Repeatable days:
| ASPX |
Copy Code |
|
<rad:RadCalendar id="RadCalendar1" runat="server" ....> <SpecialDays> <rad:RadCalendarDay Date="2007-01-31" Repeatable="DayAndMonth"> <itemStyle Backcolor="olive" /> </rad:RadCalendarDay> <rad:RadCalendarDay Date="" Repeatable="Today"> <itemStyle Backcolor="Red" /> </rad:RadCalendarDay> <rad:RadCalendarDay Date="2007-01-26" Repeatable="week"> <itemStyle Backcolor="ivory" /> </rad:RadCalendarDay> <rad:RadCalendarDay Date="2007-03-04" Repeatable="WeekAndMonth"> </rad:RadCalendarDay> ............... </SpecialDays> </rad:RadCalendar> |
Note, that if you are using Repeatable Days with client calendar (AutoPostBack="false"), you should enable it by the EneableRepeatableDaysOnClient property.