theGrid.hostElement.addEventListener('click', function(e) {
if (e.target.className === 'staff_change_icon') {
var ht = theGrid.hitTest(e);
self.openChangeStaffSlideMenu(self.gridDetile[ht.row]['shainKbn'],self.gridDetile[ht.row]['shainCd'],self.gridDetile[ht.row]['positionCd'],self.gridDetile[ht.row]['rankCd']);
}
});
上面是class是staff_change_icon 的div的click事件。
var ht = theGrid.hitTest(e);
ht.row是点击的行
ht.col是点击的列
https://demo.grapecity.com.cn/wijmo/demos/Grid/Events/Mouse/purejs