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

[Solved] How to get appointment id for the child recurring appointment.

1 Answer 77 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
BET
Top achievements
Rank 1
BET asked on 08 Aug 2013, 03:20 AM
Hi,


How to get appointment id for the child recurring appointment.
When I use java script function to get the appointment id for the child, it is giving me parent id and the index number of the child.
For example if parent appoint id is 317 and the child appointment id is 318.
My java script function is giving me 317_1 as child appointment id.

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 12 Aug 2013, 06:34 AM
Hello BET,

 
This is an expected behavior since the occurrences are generated on the fly and are actually not saved in the DataSource. In such cases you can get the parent id as for example in the code below:

var apt = $find("RadScheduler1").getAppointmentFromDomElement(e.target);
                 var id;
 
                 if (apt.get_recurrenceState()== Telerik.Web.UI.RecurrenceState.Occurrence) {
                     id = apt.get_recurrenceParentID();
                 }
                 else {
                     id = apt.get_id();
                 }
                 alert(id);

Hope this information will be helpful.

Regards,
Plamen
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Scheduler
Asked by
BET
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or