This is a migrated thread and some comments may be shown as answers.

[Solved] Manually inserted appointment not showing recurrences

0 Answers 87 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
ryan grubbs
Top achievements
Rank 1
ryan grubbs asked on 09 Sep 2009, 08:53 PM
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
  • 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




No answers yet. Maybe you can help?

Tags
Scheduler
Asked by
ryan grubbs
Top achievements
Rank 1
Share this question
or