Hi Guys, I have a RadScheduler that use a Datatable as Datasource.
DataTable Structure
DataTable dtAppointments = new DataTable("Appointments");
dtAppointments.Columns.Add("ItemID", typeof(int));
dtAppointments.Columns.Add("Title", typeof(string));
dtAppointments.Columns.Add("CalendarType", typeof(string));
dtAppointments.Columns.Add("StartDate", typeof(DateTime));
dtAppointments.Columns.Add("EndDate", typeof(DateTime));
dtAppointments.Columns.Add("hasEndDate", typeof(bool));
dtAppointments.Columns.Add("Description", typeof(string));
dtAppointments.Columns.Add("Location", typeof(string));
dtAppointments.Columns.Add("RecurrenceRule", typeof(string));
dtAppointments.Columns.Add("RecurrenceParentID", typeof(string));
dtAppointments.Columns.Add("IsRecurrence", typeof(bool));
Everything works great until I need to use the DataRecurrenceField field. I use the value "DTSTART:20110801T000000Z\r\nDTEND:20110802T000000Z\r\nRRULE:FREQ=WEEKLY;COUNT=20;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SU\r\n"
in the column RecurrenceRule as a string but when the calendar is loaded the item is add in all days of the month. What I did wrong?
RadScheduler1.DataSource =Call the method that create the DataTable with the data.
RadScheduler1.DisplayRecurrenceActionDialogOnMove = true;
RadScheduler1.DataSubjectField = "Title";
RadScheduler1.DataStartField = "StartDate";
RadScheduler1.DataEndField = "EndDate";
RadScheduler1.DataKeyField = "itemID";
RadScheduler1.DataRecurrenceField = "RecurrenceRule";
RadScheduler1.DataRecurrenceParentKeyField = "RecurrenceParentID";
RadScheduler1.DataBind();
I also used a static text that represent "Monday, 20 June 2011 12:00 AM - Friday, 31 January 2025 11:59 PM (Central Time Zone)
Repeat weekly every 5 weeks on Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday"
RecurrenceRule
"DURATION:P1D\r\nDTSTART;VALUE=DATE:20110620\r\nRRULE:FREQ=WEEKLY;INTERVAL=5;BYDAY=SU,MO,TU,WE,TH,FR,SA;WKST=MO\r\n"
I need your help!!
Hank
DataTable Structure
DataTable dtAppointments = new DataTable("Appointments");
dtAppointments.Columns.Add("ItemID", typeof(int));
dtAppointments.Columns.Add("Title", typeof(string));
dtAppointments.Columns.Add("CalendarType", typeof(string));
dtAppointments.Columns.Add("StartDate", typeof(DateTime));
dtAppointments.Columns.Add("EndDate", typeof(DateTime));
dtAppointments.Columns.Add("hasEndDate", typeof(bool));
dtAppointments.Columns.Add("Description", typeof(string));
dtAppointments.Columns.Add("Location", typeof(string));
dtAppointments.Columns.Add("RecurrenceRule", typeof(string));
dtAppointments.Columns.Add("RecurrenceParentID", typeof(string));
dtAppointments.Columns.Add("IsRecurrence", typeof(bool));
Everything works great until I need to use the DataRecurrenceField field. I use the value "DTSTART:20110801T000000Z\r\nDTEND:20110802T000000Z\r\nRRULE:FREQ=WEEKLY;COUNT=20;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SU\r\n"
in the column RecurrenceRule as a string but when the calendar is loaded the item is add in all days of the month. What I did wrong?
RadScheduler1.DataSource =Call the method that create the DataTable with the data.
RadScheduler1.DisplayRecurrenceActionDialogOnMove = true;
RadScheduler1.DataSubjectField = "Title";
RadScheduler1.DataStartField = "StartDate";
RadScheduler1.DataEndField = "EndDate";
RadScheduler1.DataKeyField = "itemID";
RadScheduler1.DataRecurrenceField = "RecurrenceRule";
RadScheduler1.DataRecurrenceParentKeyField = "RecurrenceParentID";
RadScheduler1.DataBind();
I also used a static text that represent "Monday, 20 June 2011 12:00 AM - Friday, 31 January 2025 11:59 PM (Central Time Zone)
Repeat weekly every 5 weeks on Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday"
RecurrenceRule
"DURATION:P1D\r\nDTSTART;VALUE=DATE:20110620\r\nRRULE:FREQ=WEEKLY;INTERVAL=5;BYDAY=SU,MO,TU,WE,TH,FR,SA;WKST=MO\r\n"
I need your help!!
Hank