KaxSchedulerAppointmentContextMenus Property |
Namespace: Kettic.AspNet.Controls
[PersistenceModeAttribute(PersistenceMode.InnerProperty)] public KaxSchedulerContextMenuCollection AppointmentContextMenus { get; }
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.
<%@ 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>