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

Find Appointment ID for recurrence appointment

3 Answers 93 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 2
Brian asked on 24 Nov 2010, 08:39 PM
Hi,

I have an appointment that when viewed by the appintment object has an ID of 30563_2. I can see the RecurrenceParentID is 30563. In the database, the children for this parent have the following ID's:

90023
90024
90029
90030
90034

Is there a way to quickly determine the actual ID of 30563_2?

Thanks,

Brian

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 29 Nov 2010, 02:22 PM
Hello Brian,

The occurences are not stored in the database at all (only exceptions are stored as individual appointments that are linked to the master appointment), but they are generated on the fly. More on this you can find in the help - Working with Recurring Appointments.

I hope this makes things clearer, but please feel free to contact us again if you have further questions.


Best wishes,
Peter
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Brian
Top achievements
Rank 2
answered on 29 Nov 2010, 03:57 PM
Hi Peter,

That is what I am trying to figure out. I know that the Appointment ID is 30563_2 and I can see that it is a occurrence type of appointment. How do I know if it is a regular occurrence (short of comparing its' start, end time to the parent) as well as if it is not a regular occurrence, how do I know what it's appointment ID is in the database if it is an exception?

Brian
0
Veronica
Telerik team
answered on 30 Nov 2010, 03:53 PM
Hi Brian,

You can subscribe to the OnAppointmentDataBound event and check the RecurrenceState of the appointment. If the RecurrenceState is an exception - you can get the ID of the appointment via e.Appointment.ID. Here's a sample code:

protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
    {
        if (e.Appointment.RecurrenceState == RecurrenceState.Exception)
        {
            MessageBox.Show(e.Appointment.ID.ToString());
        }
    }

Please let me know if this was helpful.

Best Regards,
Veronica Milcheva
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Scheduler
Asked by
Brian
Top achievements
Rank 2
Answers by
Peter
Telerik team
Brian
Top achievements
Rank 2
Veronica
Telerik team
Share this question
or