This is what I have:
aspx
<DayPilot:DayPilotScheduler ID="dpsSchedule" runat="server" Width="100%" HeightSpec="Parent100Pct" ClientObjectName="dps"
DataStartField="StartDateTime"
DataEndField="EndDateTime"
DataResourceField="UnitType"
DataIdField="RecordID"
DataTextField="Item"
TreeEnabled="true"
BusinessWeekends="true"
ShowNonBusiness="true"
BorderColor="Transparent" BorderStyle="None" BorderWidth="0px"
CellDuration="360"
Days="60"
CellGroupBy="Week"
BusinessBeginsHour="6"
BusinessEndsHour="18"
ContextMenuID="dpmSchedule"
BubbleID="dpbSchedule" EventClickHandling="Bubble" ResourceBubbleID="dpbResource" EventHoverHandling="Disabled"
OnBeforeEventRender="dpsSchedule_BeforeEventRender" OnBeforeTimeHeaderRender="dpsSchedule_BeforeTimeHeaderRender" OnBeforeCellRender="dpsSchedule_BeforeCellRender"
DynamicEventRendering="Disabled" TimeRangeSelectedJavaScript="showEdit(start.toString(), end.toString(), column);" ViewStateMode="Disabled">
<HeaderColumns>
<DayPilot:RowHeaderColumn Title="Unit" Width="150" />
</HeaderColumns>
</DayPilot:DayPilotScheduler>
<DayPilot:DayPilotBubble ID="dpbSchedule" runat="server" CssOnly="true" CssClassPrefix="bubble_default" ShowAfter="500" Animated="true" OnRenderEventBubble="dpbSchedule_RenderEventBubble"></DayPilot:DayPilotBubble>
<DayPilot:DayPilotMenu ID="dpmSchedule" runat="server" ClientObjectName="dps"></DayPilot:DayPilotMenu>
aspx.vb
If Not varSession("User") = "VIEWER" Then
Dim dpmi As New MenuItem
dpmi.Action = MenuItemAction.JavaScript
dpmi.JavaScript = "showManage(column);"
dpmi.Text = "Name Required"
dpmi.ToolTip = "Tooltip required - brief description of what this does"
dpmSchedule.MenuItems.Add(dpmi)
dpsSchedule.EventRightClickHandling = Enums.EventRightClickHandlingEnum.ContextMenu
litHelpful.Text = "2. To edit any part of this programme, select the period on an individual unit's programme."
dpsSchedule.TimeRangeSelectedHandling = Enums.TimeRangeSelectedHandling.JavaScript
pEdit.Visible = True
End If
LoadResources(uID, dpsSchedule, cbEvent.Checked, cbPort.Checked, cbTask.Checked, cbUKRead.Checked, cbNATORead.Checked)
LoadScheduler(uID, dpsSchedule)
Everything is working as expected, apart from the menu item not appearing. So litHelpful is being populated, etc