2013-02-28 26 views
2

这对Chrome来说非常合适,但是IE8并没有激发这个动作。我尝试了下面的代码。我在Chrome中看到消息,但IE8不显示它,这让我觉得这是不承认这种方法:Kendo-ui datagrid mousedown不被IE8检测到

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

您正在使用哪个版本的Kendo UI?你用IE9试过了吗? – OnaBai 2013-03-01 12:49:14

回答

1

附上事件的基本元素来代替。

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