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

Extend occurrence of appointment

1 Answer 82 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
dimitri
Top achievements
Rank 1
dimitri asked on 18 Jan 2011, 05:05 PM
Hi,

I would like to know if there is a way to add properties to the Occurrence class. I want to add an ID to each occurrence of an appointment.
Can the .GetOccurrences function return a list of custom occurrences? I would like to achieve something like this.

foreach (var a in master.GetOccurrences(c.StartTime, c.EndTime))
{
  customOccurrence occ = (customOccurrence) a;
           occ.newID = 1234;
}

Regards.

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 19 Jan 2011, 01:07 PM
Hello dimitri,

The Occurrence class cannot be inherited and is indended to be instantiated internally.

Regarding the custom property, you don't have any interest in adding such, because except the exceptions, the recurring appointment occurrences are not stored anywhere - they are created dynamically based on the RecurrencePattern property.

Best wishes,
Valeri Hristov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
ScheduleView
Asked by
dimitri
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or