Click or drag to resize
KaxSchedulerOnClientRecurrenceActionDialogShowing Property
Gets or sets a value indicating the client-side event handler that is called when the recurrence action confirmation dialog is about to be shown.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public string OnClientRecurrenceActionDialogShowing { get; set; }

Property Value

Type: String
A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.
Remarks

If specified, the OnClientRecurrenceActionDialogShowing client-side event handler is called when the recurrence action confirmation dialog is about to be shown. Two parameters are passed to the handler:

  • sender, the scheduler client object;
  • eventArgs with three properties:
    • get_appointment(), the instance of the appointment.
    • set_cancel(), set to true to suppress the confirmation dialog.
    • set_editSeries(), set to true or false to override the result from the dialog (only if it has been cancelled by calling eventArgs.set_cancel(true)).

This event can be cancelled.

Examples

<script type="text/javascript">
function onClientRecurrenceActionDialogShowingHandler(sender, eventArgs)
{
var appointment = eventArgs.get_appointment();
var action = eventArgs.get_recurrenceAction();

if (action == Kettic.AspNet.Controls.RecurrenceAction.Edit)
{
alert("Overriding recurrence action dialog to 'Edit series' for appointment '" + appointment.get_subject() + "'"); eventArgs.set_cancel(true);
eventArgs.set_editSeries(true);
}
}
</script>

<kettic:KaxScheduler ID="KaxScheduler1"
runat="server"
OnClientRecurrenceActionDialogShowing="onClientRecurrenceActionDialogShowingHandler">
....
</kettic:KaxScheduler>

See Also