Hi,
I'm having some problems working with recurring appointments. I am currently using the latest Q3 2009 .NET 2.0 version of Telerik, but I have tried the Q1 2010 controls and got the same problems.
I am recording the RecurrenceRule and RecurrenceParentID in the database, and the calendar entries are appearing on the scheduler properly. The problem comes when I try to edit.
By looking at the properties of the appointments as they are created from the data, I have noticed some strange things occurring.
- The "Master" record, the one with the recurrence rule in it, is created as type Exception in the scheduler.
Now, I can override this in the AppointmentCreated event and force it to a RecurrenceState of Master, but then I get other problems:
- If the type is Master, the "Edit this occurrence" generates an "Object not set to an instance of an object" error.
I have also found that
- The "Edit the series" option seems to fail if the RecurrenceParentID value is not set,
Which means that you can't edit the series from the master appointment unless you also set the RecurrenceParentID.
Using the "Reset exceptions" option gives me either:
- An "Object reference not set to an instance of an object" error if the RecurrenceParentID is not set on the master, or
- If the RecurrenceParentID is set, all occurrences are removed, including the master (presumably because it removes anything with the RecurrenceParentID set to the master value)
If you can tell me what I might be doing wrong, I would much appreciate it, since no-one else seems to be having these problems!
I was also having problems with non-recurring appointments being created in the calendar as Exceptions, but I think this is because I was not ensuring the RecurrenceRule was set to Nothing instead of an empty string, and this now works.
Regards,
Dan