Click or drag to resize
KaxSchedulerOnClientAppointmentContextMenuItemClicking Property
Gets or sets a value indicating the client-side event handler that is called when an apointment context menu item is clicked, before KaxScheduler processes the click event.

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 OnClientAppointmentContextMenuItemClicking { 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 OnClientAppointmentContextMenuItemClicking client-side event handler is called when an apointment context menu item is clicked, before KaxScheduler processes the click event.

Two parameters are passed to the handler:

  • sender, the scheduler client object;
  • eventArgs with three properties:
    • get_appointment(), the instance of the appointment.
    • get_item(), the clicked menu item.
    • set_cancel(), used to cancel the event.

This event can be cancelled. Cancelling it will prevent any further processing of the command.

Examples

<script type="text/javascript">
function appointmentContextMenuItemClicking(sender, eventArgs)
{
var appointment = eventArgs.get_appointment();
var clickedItem = eventArgs.get_item();
// ...
}
</script>

<kettic:KaxScheduler ID="KaxScheduler1"
runat="server"
OnClientAppointmentContextMenuItemClicking="appointmentContextMenuItemClicking">
....
</kettic:KaxScheduler>

See Also