2

这与 Chrome 完美配合,但 IE8 没有触发此操作。我尝试了下面的代码。我在 chrome 中看到该消息,但 IE8 没有显示它,这让我认为它无法识别此方法:

$('#datasheetGrid').data('kendoGrid').tbody.on('mousedown',function(e){
     if(e.altKey || event.button == 2){
         alert('');
     }
});
4

1 回答 1

1

而是将事件附加到基础元素。

$('#datasheetGrid').data('kendoGrid').element.on('mousedown',function(e) {
     if (e.altKey || e.button == 2){
         alert('Clicked!');
     }
});
于 2013-03-01T15:51:22.327 回答