i want to display different context menus based on the selected activity type in web month view. using left click this functionality can be acheived. problem is that right click on web month view date does not fire the Click (client side event) of Web month view. Is there any way to do this?
<ig_sched:WebMonthView ID="ctlWebMonthView" runat="server" Width="100%" WebScheduleInfoID="WebScheduleInfo1"
Height="460px" WeekendDisplayFormat="Full" AppointmentFormatString="<SUBJECT> (<LOCATION>)"
AppointmentTooltipFormatString="<SUBJECT> (<LOCATION>)" EnableAutoActivityDialog="False"
NavigationButtonsVisible="False" CaptionHeaderVisible="False" DayOfWeekHeaderFormat="Full"
BorderStyle="solid" BorderWidth="1px" BorderColor="Black" >
<AppointmentStyle BorderStyle="Solid" BorderWidth="1px" Font-Size="8pt">
</AppointmentStyle>
<AllDayEventStyle BorderStyle="Solid" BorderWidth="1px" Font-Size="8pt" >
</AllDayEventStyle >
<ClientEvents Click ="DateClicked" /> -- This Click event does not fire on Right Click
</ig_sched:WebMonthView>
Thanx for ur Help!!
Shaheen
You can try the MouseUp and/or MouseDown events and detect if the right button is clicked. According to docs
MouseDownThis event fires when a mouse down occurs on any element in the MonthView.Parameters - oWebMonthView - The WebMonthView client-side object.oEvent - The event object, which allows you to cancel the event, cancel the postback, or request a postbackelement -The html element that corresponds to where the mouse button was pressed down.
You can use oEvent and check if the mouse right click button was clicked using:
var rightcClick = (oEvent.button == 2);