Completed
Last Updated: 11 Mar 2020 09:09 by ADMIN
knowledge
Created on: 22 Dec 2019 16:35
Category: Menu
Type: Bug Report
0
on touch devices, kendo context menu prevents showing the browser's default context menu on other elements
Hi,

I'm using kendo context menu on a grid that's selectable, & contains links in its row items.

I need to show the custom context menu on selected rows only, without losing the browser's default context menu on the other rows, e.g. to allow opening the link in a new page.

I added a context menu & set the target & filter as follows:

$("#context-menu").kendoContextMenu({
        target: "#grid",
        filter: "tr.k-state-selected[role='row']",
        select: function(e) {
          var grid = $("#grid").data("kendoGrid");
          var model = grid.dataItem(e.target);
          alert( model.age + " " + model.name);
        }
      });

This works fine on desktop browsers (I tried Chrome & Firefox). However, I have a problem on touch devices: the browser's default context menu is never shown for non-selected rows (you can reproduce it using the browser's Emulator) .

Here's a working dojo :

http://dojo.telerik.com/oyASaDiN

You will notice that I'm using version 2017.3.1026 in this dojo (which is the version currently used by my company), but even if we consider an upgrade, the problem is also reproducible on the latest version (2019.3.1023). 



Please advise,
2 comments
ADMIN
Misho
Posted on: 26 Dec 2019 06:40

Hi,

Thank you for contacting us about the issue you have faced. I was able to reproduce it also in my side and have logged it in our backlog so our developers will investigate it in more details. You could observe its status in the following github item:

https://github.com/telerik/kendo-ui-core/issues/5497 

As a small token of gratitude for your report I'm adding 500 Telerik points to your account.

Best Regards,
Misho
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
knowledge
Posted on: 23 Dec 2019 08:45

Additional notes:

1) The problem is NOT reproducible using the old version of kendo scripts on a mobile device running Android 10

I prepared a copy of the dojo sample using the latest kendo scripts (2019.3.1023):

http://dojo.telerik.com/epodUTIn/2

When I tried both samples on a mobile device running Android 10, I noticed that it was reproducible on the latest version of kendo scripts, but it was working fine with the older version!

I found that detectOS function in version (2017.3.1026) is not recognizing Android 10, while it's detetcted correctly in the latest version. Might be related? 

2) The problem is reproducible using context menu configured on different types of elements, so I think it's not related to the GRID control itself.

 

Best regards,