Why my recurrence in radschedule doesn't work it just display the master recurrence? see attached image
here's the scheduler control
here's the code
here's the scheduler control
<
telerik:RadScheduler
ID
=
"RadScheduler1"
runat
=
"server"
TimelineView-UserSelectable
=
"false"
ShowResourceHeaders
=
"true"
EnableViewState
=
"false"
AllowInsert
=
"false"
ShowAllDayRow
=
"false"
HoursPanelTimeFormat
=
"HH:mm"
OverflowBehavior
=
"Scroll"
Height
=
"700px"
MinutesPerRow
=
"60"
ShowFooter
=
"false"
ShowFullTime
=
"true"
AllowDelete
=
"false"
ReadOnly
=
"true"
DataKeyField
=
"ID"
DataSubjectField
=
"Subject"
DataStartField
=
"Start"
DataEndField
=
"End"
>
<
DayView
EnableExactTimeRendering
=
"true"
HeaderDateFormat
=
"dddd, dd MMMM yyyy"
/>
<
WeekView
EnableExactTimeRendering
=
"true"
HeaderDateFormat
=
"dddd, dd MMMM yyyy"
/>
</
telerik:RadScheduler
>
here's the code
protected
void
Page_Load(
object
sender, EventArgs e)
{
RadScheduler1.SelectedView = Telerik.Web.UI.SchedulerViewType.DayView;
RadScheduler1.SelectedDate =
new
DateTime(2012, 10, 19, 13, 0, 0);
Appointment app =
new
Appointment
{
ID = 1,
Start =
new
DateTime(2012, 10, 19, 13, 0, 0),
End =
new
DateTime(2012, 10, 19, 15, 0, 0),
Description =
"description"
,
Subject =
"subject"
,
RecurrenceState = RecurrenceState.Master,
};
RecurrencePattern pattern =
new
RecurrencePattern();
pattern.Frequency = RecurrenceFrequency.Daily;
pattern.DaysOfWeekMask = RecurrenceDay.EveryDay;
RecurrenceRange range =
new
RecurrenceRange();
range.Start =
new
DateTime(2012, 10, 19, 13, 0, 0);
range.RecursUntil =
new
DateTime(2012, 10, 30, 15, 0, 0);
DailyRecurrenceRule rrule =
new
DailyRecurrenceRule(2, range);
app.RecurrenceRule = rrule.ToString();
//DTSTART:20121019T130000Z\r\nDTEND:20121019T130000Z\r\nRRULE:FREQ=DAILY;UNTIL=20121030T150000Z;INTERVAL=2;BYDAY=MO,TU,WE,TH,FR,SA,SU\r\n
RadScheduler1.InsertAppointment(app);
}