I’ts possible to pass “idPra” cell value instead of RowId to doOnRowDblClicked?
I’ve tried but it dont seams to work
This is my code
mygrid.setOnRowDblClickedHandler(doOnRowDblClicked);
mygrid.init();
function doOnRowDblClicked(idPr){
document.forms.vis.numPr.value=idPr;
document.forms.vis.submit(); }
<logic:iterate id=“lista” name=“listaPr” property=“elementi” indexId=“indice”>
<bean:write name=“lista” property=“idPra”/>
</logic:iterate>
By knowing rowID you can locate any other related value, in case if you need a value of first cell it can be done as
function doOnRowDblClicked(id){
var idPr = mygrid.cells(id,0).getValue();
document.forms.vis.numPr.value=idPr;
document.forms.vis.submit();
}