DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » Bugs » FireFox context menu issue

FireFox context menu issue

When we right click on an event in firefox it shows context menu but also shows the browser menu on top of it.....
Sheraz - 12/20/2007 8:38:30 AM
This can happen in on of the two cases:
  • In about:config, you have the dom.event.contextmenu.enabled preference set to false,
  • There is a JavaScript error during menu rendering. In that case, can you post the error details?
Dan Letecky - 12/20/2007 10:32:25 AM
I'm having the same problem except in IE6. Any thoughts?
Anonymous - 12/31/2007 6:30:29 PM
DayPilot uses "return false;" in the context menu handler (oncontextmenu) to prevent the standard context menu from appearing. In Firefox the user can forbid the default menu overriding using the config settings mentioned above (dom.event.contextmenu.enabled). In IE it's always allowed to override the context menu - it means that there was an error in the event handler.

One of the possible causes can be assigning a wrong ContextMenuClientName in BeforeEventRender event handler (it must be the value of DayPilotMenu.ClientObjectName property). ContextMenuClientName is useful when you need to assign the context menu for individual events.

Questions:
1. Does the DayPilot context menu appear below the standard one?
2. Does it happen in FF or other browsers as well?
Dan Letecky - 1/2/2008 9:12:03 AM
The context menu displays behind the regular context menu. No, it displays correctly in FF.
Anonymous - 1/2/2008 4:19:48 PM
i have been closing looking at this issue ad have found the exact case to reproduce this.
Whenever the eventclick is set to disabled context menu comes up with the default right click menu.
It works fine when event click is set to edit.

I hope this would help day pilot team track the error and rectify the problem hopefully in the coming release.
Sheraz - 1/4/2008 7:28:13 AM
Sheraz,

Thanks for the reproduction instructions, that helps a lot! The fix will be included in the next release.
Dan Letecky - 1/4/2008 11:13:09 AM
Post reply