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

[Solved] How can I create a recurrence exception programmatically?

1 Answer 186 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Michael Kane
Top achievements
Rank 1
Michael Kane asked on 29 May 2009, 02:21 PM
I'm building a UI that relies on the RRULE engine and stores Appointments in the same Appointments database table, but does NOT use a RadScheduler instance.

The reason for doing so is so I can emulate recurring Bills (i.e. not Appointments, exactly), and I'll want to generate a forecast of upcoming bills in order to create a budget. The point is, using the RRULE functionality will make it much easier for me to display bills that will occur in the future.

However, there may be times when I'll need to edit a single future occurrence. For instance, say I have a monthly bill to my cable company, but for my birthday my parents are going to pick up the tab. Therefore, for that one instance, I'll want to create an exception so that that bill doesn't get forecasted in my budget.

I understand that exceptions get appended to the RRULE string in the Master event's RRULE field. The question is, how do I generate create such an exception programmatically?

Thanks very much,

Michael

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 01 Jun 2009, 02:12 PM
Hello Michael,

You can add exceptions to the RecurrenceRule object through the Exceptions property as described here:
http://www.telerik.com/help/aspnet-ajax/telerik.web.ui-telerik.web.ui.recurrencerule-exceptions.html

I hope this helps.

Sincerely yours,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Scheduler
Asked by
Michael Kane
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or