2013-02-28 57 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!'); 
    } 
});