search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Context Menu won't appear on DayPilotMonth

Asked by Simon Edwards
16 years ago.

I can't get the context menu to appear for a DayPilotMonth control and I don't know why, are there any "traps" you can think of? I've set the ContextMenuID accordingly and set the EventRightClickHandling to ContextMenu - that should be it shouldn't it? markup...

<pre>
<asp:UpdatePanel ID="updMonth1" runat="server" UpdateMode="Always">
<ContentTemplate>
<dpt:DayPilotMonth ID="DayPilotMonth1" runat="server" width="100%" MinCellHeight="80"
OnBeforeCellRender="DayPilotMonth_BeforeCellRender" WeekStarts="Monday" BackColor="Silver"
OnBeforeHeaderRender="DayPilotMonth_BeforeHeaderRender" CellHeaderFontColor="Gray"
CellHeaderFontSize="7pt" HeaderBackColor="Control" HeaderFontColor="Black" HeaderHeight="21"
InnerBorderColor="Gray" NonBusinessBackColor="WhiteSmoke" CellHeaderFontFamily="Verdana,Tahoma,Arial"
Font-Names="Verdana,Tahoma,Arial" Font-Size="8pt" HeaderFontFamily="Verdana,Tahoma,Arial"
EventMoveHandling="PostBack" OnBeforeEventRender="DayPilotMonth_BeforeEventRender"
OnEventMove="DayPilotMonth_EventMove"
OnTimeRangeSelected="DayPilotMonth_TimeRangeSelected"
CellHeaderHeight="12"
EventFontColor="37, 82, 130"
EventFontFamily="Verdana,Tahoma,Arial"
EventFontSize="8pt"
EventHeight="30"
BubbleID="DayPilotBubble1"
ContextMenuID="DayPilotMenu1"
EventClickHandling="PostBack" EventClickJavaScript="" EventMoveJavaScript="" EventResizeJavaScript="" EventRightClickJavaScript="" OnEventMenuClick="DayPilotMonth1_EventMenuClick" TimeRangeSelectedHandling="PostBack" TimeRangeSelectedJavaScript="" />
<dpt:DayPilotMenu ID="DayPilotMenu1" runat="server" MenuTitle="Cargo Options...">
<dpt:MenuItem Action="PostBack" Command="cargo_link" Text="Link" />
<dpt:MenuItem Action="PostBack" Text="-" />
<dpt:MenuItem Action="PostBack" Command="cargo_agree" Text="Set Agreed" />
<dpt:MenuItem Action="PostBack" Command="cargo_move" Text="Manual Move" />
<dpt:MenuItem Action="PostBack" Text="-" />
<dpt:MenuItem Action="PostBack" Command="cargo_properties" Text="Properties" />
</dpt:DayPilotMenu>
</ContentTemplate>
</asp:UpdatePanel>
</pre>

Rergards
Simon

Comment posted by Simon Edwards
16 years ago.
It's ok, I solved it... I was turning off the EventRightClickHandling elsewhere in code... doh!! sorry.
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.