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

OnClientRecurrenceActionDialogShowing issue with recurrent meetings

6 Answers 107 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Wouter
Top achievements
Rank 1
Wouter asked on 13 Jan 2011, 02:03 PM
I have the following issue when using a List datasource in combination with a custom OnClientRecurrenceDialogShowing:

<telerik:RadScheduler ID="Scheduler" runat="server" 
         OnClientRecurrenceActionDialogShowing="OnClientRecurrenceActionDialogShowing"
         DataKeyField="Id"
         DataSubjectField="Subject" 
         DataStartField="Start" 
         DataEndField="End"
         DataRecurrenceField="RecurrenceRule"
         DataRecurrenceParentKeyField="RecurrenceParentId" 
         OnAppointmentInsert="Scheduler_AppointmentInsert"
         OnAppointmentUpdate="Scheduler_AppointmentUpdate"
         OnAppointmentDelete="Scheduler_AppointmentDelete"
         DisplayDeleteConfirmation="False" 
         AllowDelete="true" />

and following Javascript:

<script type="text/javascript">
    function OnClientRecurrenceActionDialogShowing(sender, eventArgs) {
        eventArgs.set_cancel(true);
        eventArgs.set_editSeries(false);
    }  
</script>

According to documentation, this should bypass the "do you want to (edit/delete) this appointment occurrence or series" dialogs.
However, if I put a breakpoint in the Scheduler_AppointmentDelete handler, I hit the breakpoint for "simple" appointments, but not for recurrent ones. On the other hand, editing a recurrent appointment works fine, bypasses the dialog and edits the series.

Is this a known issue?

(version = v4.0.30319 / 2010.2.929.40)

6 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 14 Jan 2011, 01:33 PM
Hi Wouter,

This is normal behaviour of the scheduler. OnAppointmentDelete event doesn't fire because each time you try to delete a recurring appointment - you are deleting actually a occurence and not the whole serie. As the recurring appointments are not stored in separate objects but in RecurrenceRule - that's why the event is not fired.

Please let me know if you have further questions.

Regards,
Veronica Milcheva
the Telerik team
Browse the vast support resources we have to jump start 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
Wouter
Top achievements
Rank 1
answered on 17 Jan 2011, 11:27 AM
I assume I still have the possibility to update the appointment in the database when a recurring meeting occurrence is deleted. Is there an update callback invoked then?


Furthermore, if I change
eventArgs.set_editSeries(false); 
to
eventArgs.set_editSeries(true); 

will there be a callback in case of a delete?
0
Veronica
Telerik team
answered on 19 Jan 2011, 03:21 PM
Hello Wouter,

If you change the eventArgs.set_editSerries(false) to "true" you will be able to edit only the whole series of the recurring appointment. Could you please be more specific on "Is there an update callback invoked then"?

Best wishes,
Veronica Milcheva
the Telerik team
Browse the vast support resources we have to jump start 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
Wouter
Top achievements
Rank 1
answered on 19 Jan 2011, 03:52 PM
Well my main question is that (going back to the original post) that using that code, I'll be able to delete a single occurrence on the client side (in the RadScheduler), without knowing at server-side that anything happened... Is there a callback performed when I delete an occurrence of a recurrent meeting? (so I can update the database with the recurrent meeting "exception").

Ignore my other question in the prev post.

Kind regards,

Wouter
0
Veronica
Telerik team
answered on 24 Jan 2011, 12:41 PM
Hi Wouter,

You can subscribe to the OnOccurenceDelete event and perform your operations in the handler.

Please let me know if you have further questions.

All the best,
Veronica Milcheva
the Telerik team
Browse the vast support resources we have to jump start 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
Wouter
Top achievements
Rank 1
answered on 24 Jan 2011, 12:59 PM
Ok thanks, I must have overlooked that event. I expected some sort of update event to be called...
Tags
Scheduler
Asked by
Wouter
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Wouter
Top achievements
Rank 1
Share this question
or