
I am using a Kendo Context Menu on a treeview and some other divs on the page.
Occasionally, when right clicking, I get the browser's right click menu when right clicking. Its not often, but does occur in both IE11 and Chrome. (probably 1 out of every 20 times with IE, 1 out of every 30 times with Chrome)
I've tried to narrow down when it happens by clicking in different areas of the treeview items, but there doesn't seem to be a pattern. The menu is simple: only a couple items, and is not dynamic.
I'm guessing kendo uses oncontextmenu - so this is a browser issue. I'm just seeing if you have ever seen this issue, and if there is anything that can be done to avoid it. (or do we just have to accept it)
4 Answers, 1 is accepted
Could you post a dojo example that demonstrates the behavior you describe, along with screencast showing the areas you right-click on? This will allow us to check whether the ContextMenu does not show due to how its "filter" option is set or there is another reason behind this behavior.
Regards,
Ivan Danchev
Progress Telerik

Hi Ivan, sorry for the delay.
I can reproduce the issue in telerik's demo of the context menu, so I didn't create a dojo.
Attached is a screencast of me right clicking on the demo page using Chrome. Of the 27 right clicks, Chrome's menu appears 4 times. Like I say, I'm pretty sure this is a browser/screen/computer issue, but I'm guessing it will occur on a percent of computers. I'm just wondering if anyone has mentioned it before, and if there are any tricks to avoid it. (I'm guessing not)
Screencast attached.
I cannot think of anything else that could be causing this behavior other than an issue in a specific version of the browser. Here's a screencast showing about 40 consecutive right clicks in the same demo and every time the ContextMenu shows as expected. It was recorded in Chrome 69.0.3497.100. If you are using an older version I would suggest upgrading, but we have no knowledge of such issue with the ContextMenu in a specific version of this browser, furthermore you mentioned that you are noticing this in IE11 as well. Is it exhibited on other machines?
With regard to IE11 the behavior was identical at my end - the browser's own context menu didn't show a single time out of 40 clicks.
Regards,
Ivan Danchev
Progress Telerik

Hello Justin,
I found this old thread because of the same problem for me. But I got the browsers default menu much more often sometimes at every click.
For me the problem was not the old Kendo version ("@progress/kendo-ui": "2020.3.1021") but the mouse hardware itself: When I plugged in a newer mouse the "error" could not be reproduced. Using the older mouse again the error occured again.
Nevertheless I think that there must be also a problem in the Kendo component so that it does not work 100% every time.
Hope I could help you or someone else.
Regards,
Christian
Update, 25.01.2022:
Strange! Yesterday I could reproduce the problem with the older mouse. But today it is working fine with both mice - not even one single wrong context menu.