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

All Day Events and RecurrenceRule

1 Answer 96 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Christopher Susilraj
Top achievements
Rank 1
Christopher Susilraj asked on 07 Feb 2009, 05:25 AM
Hi
       Am using Dataset to bind data to the Scheduler. In the dataset i fetch
       Id, Subject, StartTime, EndTime, RecurrenceRule , RecurrenceParentId and Annotations. In the above fields I Set Null values to
       RecurrenceRule,RecurrenceParentId and Annotations. because i don't know how to set the values for the fields. Now My Questions
      are
1) What is Recurrence Rule? How to set values for the Recurrence Rule? Give Sample values.
2) How to Set All Day Events? Should i add a New Column for All Day events while fetching. and alose what is the key field for all day events in Scheduler.
3) We have a table to Set recurrence  for an appointments. can i implement Scheduler's Recurrence data with my table.

Regards,
Sathak Musthafa

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 09 Feb 2009, 03:47 PM
Hello Sathak,

We have answered the support ticket you sent on these issues. Here is our reply in case anyone else has similar questions:

"I have prepared and attached a small demo to serve as reference for the questions you asked.

1. You can get detailed information on recurring apointments and recurrence rule here. In the attached demo, if you view the Appointments table data you will see the following data under the RecurrenceRule
field:

DTSTART:20090209T100000Z
DTEND:20090209T110000Z
RRULE:FREQ=DAILY;COUNT=4;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU

This represents a sample recurrence string. Notice the new lines. RadScheduler will automatically generate the recurrence strings based on the choices you select in the recurrence panel of the advanced form. If you need to programmatically generate recurrence strings make sure you implement the required new lines with "\n\r". For example the above sample will translate to the following string in code behind:
"DTSTART:20090209T100000Z\n\rDTEND:20090209T110000Z\n\rRRULE:FREQ=DAILY;COUNT=4;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU" 
 
// * * * 

2. All day events are created when you check the "all day" checkbox in the advanced form. An all day apopappoinment has its start time set to 12:00 am of the day for which it is scheduled and the end time set to 12:00 am the day after. For example:

Start: 2/9/2009 12:00:00 AM
End: 2/10/2009 12:00:00 AM

You don't need an additional field for all day appointments. The above format is sufficient. "


Best wishes,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Christopher Susilraj
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or