Categories | Question details Back To List | ||
How to pass a value to doOnRowDblClicked 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"> <row id="<%= indice.toString() %>"> <cell><bean:write name="lista" property="idPra"/></cell> </row> </logic:iterate> Answer posted by Support on Apr 02, 2008 08:16 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(); } |