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

[Solved] Custom RecurrenceRule - Using Scheduler for interaction/display only

1 Answer 289 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 29 Apr 2008, 08:54 PM
Hello,

Our events/appointment application has a custom implementation for recurrence.  We are not using the iCalendar standard - we are using our own format.

With that said, I've been trying to bind our data to your scheduler and have almost had a successful merger.  When appointment modification need to take place I'm redirecting the user to our already established page where they can build their appointment.  Afterwards I simply rebind the schedulers current viewable timeframe.

The way I've bound the recurring events is simple.  I have 2 boolean values in my datasource "IsRecurring" and "IsException".  On the AppointmentCreated event I'm manually checking these custom attributes and then assigning the appointment recurrence state accordingly.  By doing this however I'm leaving the recurrence rule / parent Id fields null.

I have everything working the way I want short of being able move / resize / delete appointments right on the scheduler.  For most operations I get a "Object reference not set to an instance of an object." alert box showing.  When deleting I get "Cannot parse parentAppointment rule during delete operation.".

I can only surmise that this means that it is required to provide a valid iCalendar recurrence rule to the appointments for these operations to work by default.

My question is - is there a work around?

Thank you.

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 30 Apr 2008, 04:04 PM
Hi Tom,

Thank you for using RadScheduler in your project. As far as I understand, you only need to "emulate" the appearance of recurring events and recurrence exceptions. There is no need to set the recurrence-related fields to achieve this. We can use custom attributes and a custom appointment template to get the same visual appearance. If this is the case, we will construct a sample on how this can be done.

If you want to use the integrated recurrence functionality, then you will have to construct an equivalent recurrence rule either by using the RecurrenceRule class and its inheritors or manually.

Greetings,
Tsvetomir Tsonev
the Telerik team

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