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

Editing appointment occurrence

1 Answer 86 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mikko Mertanen
Top achievements
Rank 1
Mikko Mertanen asked on 31 May 2010, 09:59 AM
Hi!

We have this functionality in our software which lists occurrences of recurring activity. User can click one of those appoinments to open scheduler in edit mode to edit the appointment. There is a link to the scheduler which contains appointmentid and I open the scheduler in advanced edit form using radscheduler1.ShowAdvancedEditForm (appointment, false) after first fetching the appoint using the id. Now it always opens recurring appointment in edit series mode. How could I change the functionality so that it would open an occurrence to advanced edit form. The functionality should be the same as when user double clicks an appointment in scheduler and selects edit only this occurrence from popup box. The problem is that this occurrence doesn't necessarily exist when opening the scheduler. So how could I open the advanced edit form for that occurrence without showing the selection popup to user? I can pass also the dates and times for the occurrence in the link, so I would know which occurrence to edit.

Mikko

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Jun 2010, 12:54 PM
Hello Mikko,

If you need to be able to edit appointment on single click and without the confirmation dialog, I recommend you try the following approach:
<script type="text/javascript">
       function editAppointment(sender, e) {
           var apt = e.get_appointment();
           sender.editAppointment(apt);
       
   </script>
   <telerik:RadScheduler ID="RadSchedueler1" runat="server" OnClientAppointmentClick="editAppointment">
   </telerik:RadScheduler>

With this implementation, you don't need to use appointment template to expose a link with the id of the appointment. Let me know if this is what you need.

Greetings,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Scheduler
Asked by
Mikko Mertanen
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or