Hello,
is there a way to overwrite the browsers (chrome and firefox) default behavior for middle or right click on custom buttons in a grid?
We are trying to get the middle mouse click on a custom command button in a grid.
With this line we only get the left mouse click, the middle and right are ignored/use the default browser commands
command.Custom("Details").Text(" ").Click("showDetails").IconClass("fas fa-eye");
Middle - new tab
Right - context menu
We tryed using JS on the mousedown event but it didn't work and in the "showDetails" method we only get the left mouse button
$('.k-grid-Details').on('mousedown', function (e) {
debugger
if (e.which == 1) {
e.preventDefault();
alert("middle button");
});