Click or drag to resize
KaxSchedulerOnClientTimeSlotContextMenuItemClicking Property
Gets or sets a value indicating the client-side event handler that is called when a time slot 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 OnClientTimeSlotContextMenuItemClicking { 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 OnClientTimeSlotContextMenuItemClicking client-side event handler is called when a time slot 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_slot(), the instance of the time slot.
    • 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 appointmentTimeSlotMenuItemClicking(sender, eventArgs)
{
var timeSlot = eventArgs.get_slot();
var clickedItem = eventArgs.get_item();
// ...
}
</script>

<kettic:KaxScheduler ID="KaxScheduler1"
runat="server"
OnClientTimeSlotContextMenuItemClicking="appointmentTimeSlotMenuItemClicking">
....
</kettic:KaxScheduler>

See Also