I'm using Kendo UI Context Menu in Kendo UI Grid (the JavaScript one not MVC). It provides a filter attribute using which I'm making the context menu to open when user selects a row of grid. Now I need to add a link in a cell of grid using template which I have done but on click of that link I need a JavaScript function to run instead of opening context menu. Below is the snip showing rows and blue link which instead of calling JavaScript function is opening Context Menu. The context menu is set to open on left click instead of right because client wanted it to be like this for iPad.
Is there anyway to bypass context menu from opening if that link is clicked, may be best would be to exclude the link or anchor tag while mentioning filter property of context menu. I have mentioned menu like this:
$("#menu").kendoContextMenu({
showOn: "click",
orientation: "vertical",
target: "#mainGrid",
filter: "td[role='gridcell']",
});