I have a dhtmlxGrid with one of the column types as link. When I click on the link, then row this link is in should get selected. How can I do this?
or in other words, I want to get the rowId of the row when I click on the link that is in this row.
It can be done only with code modification. In the dhtmlxgrid_excell_link.js file replace row:
this.setCValue("<a “+valsAr[1]+” onclick=’(_isIE?event:arguments[0]).cancelBubble = true;’>"+valsAr[0]+"",valsAr);
with this.setCValue("<a “+valsAr[1]+” >"+valsAr[0]+"",valsAr);
You can find more information about custom eXcell creation here dhtmlx.com/dhxdocs/doku.php?id=d … l_creation