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

how to create a RecurrenceRule string in XML

1 Answer 57 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Tanuj
Top achievements
Rank 1
Tanuj asked on 10 Sep 2010, 04:09 AM

Hi,
i am using an XML data file for my scheduler, i am dynamically creating the file and storing on the disk in this location(

 

Server.MapPath(

"~/App_Data/Calendar.xml")), everything is working fine as expected.

now i need to create the <RecurrenceRule> tag in the xml, i was looking at one example, but i am not sure how to create the RecurrenceRule String, please advice if there are any existing functions that i can use to build this string?

here is what i have for a training class and their corresponding formats
(1) StartDate (ex:  "11/10/2010")
(2) EndDate  (ex: "12/12/2010")
(3) StartTime (ex : "9:30AM")
(4) EndTime (ex: "1:30PM")
(5) Days of Week (ex: "Mon,Wed,Fri")

<Appointment>
  <ID>2</ID>
  <Subject>Technical meeting</Subject>
  <Start>2007-03-30T06:30Z</Start>
  <End>2007-03-30T07:30Z</End>
  <RecurrenceRule><![CDATA[
          DTSTART:20070330T063000Z
          DTEND:20070330T073000Z
          RRULE:FREQ=DAILY;INTERVAL=1;UNTIL=20070406T210000Z;BYDAY=MO,TU,WE,TH,FR;
          ]]></RecurrenceRule>
  <Resources>
    <Room Key="1" />
    <User Key="1" />
  </Resources>
  <Attribute Key="CustomAttribute" Value="1" />
</Appointment>

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 15 Sep 2010, 11:32 AM
Hi Tanuj,

I recommend you use XmlSchedulerProvider as in this demo. It will take care of recurring appointments, reminders and custom attributes automatically.


Greetings,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler
Asked by
Tanuj
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or