I was creating my own appointments and binding them to the RadScheduler. I seem to be adding the appointments, but am having trouble getting the other occurences of the ReccurenceRule to show. I kept the appointment data to the minimum, but maybe i missed a key property?
IList<Appointment> AppointmentList = new List<Appointment>();
foreach (DataRow row in data.AsEnumerable())
{
Appointment app = new Appointment();
app.ID = row["ID"].ToString();
app.RecurrenceParentID = row["RecurrenceParentID"].ToString();
app.Subject = row["Subject"].ToString();
app.Start = (DateTime)row["StartTime"];
app.End = (DateTime)row["EndTime"];
app.RecurrenceRule = row["RecurrenceRule"].ToString();
AppointmentList.Add(app);
}
RadScheduler1.DataSource = AppointmentList;
RadScheduler1.DataBind();
my RecurrenceRule is a string like below
DTSTART:20090310T210000Z\r\nDTEND:20090311T210000Z\r\nRRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=TU\r\n
I see the appointment, but its only for that one Tuesday?
other things i have attempted
I feel theres something im missing as i am hoping to move from the XmlSchedulerProvider to my own custom implemented provider that has a database backend. I feel as if the provider is doing something that I'm missing, although i cant seem to find that something within reflector when i look at it.
cheers,
ryan
IList<Appointment> AppointmentList = new List<Appointment>();
foreach (DataRow row in data.AsEnumerable())
{
Appointment app = new Appointment();
app.ID = row["ID"].ToString();
app.RecurrenceParentID = row["RecurrenceParentID"].ToString();
app.Subject = row["Subject"].ToString();
app.Start = (DateTime)row["StartTime"];
app.End = (DateTime)row["EndTime"];
app.RecurrenceRule = row["RecurrenceRule"].ToString();
AppointmentList.Add(app);
}
RadScheduler1.DataSource = AppointmentList;
RadScheduler1.DataBind();
my RecurrenceRule is a string like below
DTSTART:20090310T210000Z\r\nDTEND:20090311T210000Z\r\nRRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=TU\r\n
I see the appointment, but its only for that one Tuesday?
other things i have attempted
- modify the DTEND to a further date
- set the appointment with all the different RecurrenceState values on the Enum
- went ahead and put EnableRecurrenceSupport="true" on the scheduler itself
- move the code from pageload to page_Init
- tried the RecurrenceRule with and without the \r\n (i read they are needed)
I feel theres something im missing as i am hoping to move from the XmlSchedulerProvider to my own custom implemented provider that has a database backend. I feel as if the provider is doing something that I'm missing, although i cant seem to find that something within reflector when i look at it.
cheers,
ryan