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

converting recrule to something that can be used for outlook

4 Answers 126 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Joshua Gates
Top achievements
Rank 1
Joshua Gates asked on 01 Nov 2007, 03:56 PM
we are integrating you scheduler to outlook via outlook's api.. the only thing i have ran into that seems to be a snag...is the recurrence rules.

I can get the recrule from the appointment but i am unclear how to convert that so that i can use it in outlook.  2 things i am looking for if possible.

1. Way to parse the recrule to an outlook recurrencpattern

or

2. A way i can parse the recrule from the appointment string object to a telerik recurrance pattern or telerik recurrence rule. that way i can fill out the outlook recurrence pattern manually..


any help is appreciated thanks

Joshua

4 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 02 Nov 2007, 09:10 AM
Hi Joshua Gates,

Thank you for using RadScheduler.

I doubt that we will be able to directly use the string representation of the RecurrenceRule, so the second option is better. You can use the RecurrenceRule class in order to parse it. For example:

RecurrenceRule rrule; 
 
if (RecurrenceRule.TryParse(rruleData, out rrule) 
    // rrule contains the parsed RecurrenceRule 
    // rrule.Pattern and rrule.Range contain most of the data describing the recurrence. 
 


Best wishes,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Joshua Gates
Top achievements
Rank 1
answered on 02 Nov 2007, 09:00 PM
ok going the other way from outlook to telerik..

how do i convert a RecurrnanceRange to the Recrule string

Joshua
0
Joshua Gates
Top achievements
Rank 1
answered on 05 Nov 2007, 03:38 PM
the sample u have on knowledge center descriibing the recurrance engine lacks the piece that shows how u save that to the appointment...i am assuming it needs to be converted into the recrule string in which case can we get a sample of that


thanks
0
T. Tsonev
Telerik team
answered on 06 Nov 2007, 08:28 AM
Hello Joshua Gates,

Thank you for pointing out this omission in the help article. We will add an example that demonstrates conversion to recurrence rule string.

The code itself is very simple, just call the ToString() method on the RecurrenceRule instance, after you have populated it with data:

appointment.RecurrenceRule = rrule.ToString(); 


Kind regards,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Joshua Gates
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Joshua Gates
Top achievements
Rank 1
Share this question
or