I found an old thread that said to use this function:
dhtmlxEvent(grid.obj,"click",function(e){
var el = grid.getFirstParentOfType(_isIE?event.srcElement:e.target,"TD");
var ind=el._cellIndex;
var id=el.parentNode.idd;
//any custom code here
});
I’ve been using dhtmlxEvent for detecting events, I decided to create a prototype and share it:
dhtmlXGridObject.prototype.onClick = function(cb){
var that=this;
dhtmlxEvent(that['obj'],"click",function(e){
var el = that.getFirstParentOfType(_isIE?event.srcElement:e.target,"TD");
var rId = el.parentNode.idd;
var cId = el._cellIndex;
var v = that.cells(rId, 0).getValue()
cb.apply(that, [rId, cId, v]);
})
}