Click or drag to resize
KaxSchedulerAppointmentContextMenus Property
Gets a collection of KaxSchedulerContextMenu objects that represent the Appointment context menus of the KaxScheduler control.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public KaxSchedulerContextMenuCollection AppointmentContextMenus { get; }

Property Value

Type: KaxSchedulerContextMenuCollection
A KaxSchedulerContextMenuCollection that contains all the Appointment context menus of the KaxScheduler control.
Remarks

By default, if the AppointmentContextMenus collection contains KaxSchedulerContextMenus, the first one is displayed on the right-click of each Appointment. To specify a different context menu for a Appointment, use its ContextMenuID property.

Examples
The following code example demonstrates how to populate the AppointmentContextMenus collection declaratively.
<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Register TagPrefix="Kettic" Namespace="Kettic.AspNet.Controls" Assembly="Kettic.AspNet.Controls" %>

<html>
<body>
<form id="form1" runat="server">
<Kettic:KaxScriptManager ID="KaxScriptManager1" runat="server"></Kettic:KaxScriptManager>
<br />
  <kettic:KaxScheduler runat="server" ID="KaxScheduler1">
  <AppointmentContextMenus>
     <kettic:KaxSchedulerContextMenu runat="server" ID="ContextMenu1">
         <Items>
             <kettic:KaxMenuItem Text="Open" Value="CommandEdit" />
             <kettic:KaxMenuItem IsSeparator="True" />
             <kettic:KaxMenuItem Text="Categorize">
                 <Items>
                     <kettic:KaxMenuItem Text="Development" Value="1" />
                     <kettic:KaxMenuItem Text="Marketing" Value="2" />
                     <kettic:KaxMenuItem Text="Personal" Value="3" />
                     <kettic:KaxMenuItem Text="Work" Value="4" />
                 </Items>
             </kettic:KaxMenuItem>
             <kettic:KaxMenuItem IsSeparator="True" />
             <kettic:KaxMenuItem Text="Delete" ImageUrl="Images/delete.gif" Value="CommandDelete" />
         </Items>
     </kettic:KaxSchedulerContextMenu>
  </AppointmentContextMenus>
  </kettic:KaxScheduler>

</form>
</body>
</html>
See Also