I like to open the detailed record view (the popup that you get by clicking the 'View selected row' button in the status line) with a double click on the row. The grid is in read-only mode (no editing). Is that possible? How would I do that?
Pasting from faq:
Q) How to show "Edit Record" or "View Record" dialog on row double click?
Following code snippet will enable edit dialog on row double click. This will be placed in before we echo $out variable. `$g` is the jqgrid() object.
<script>
var opts = {
'ondblClickRow': function (id) {
jQuery(this).jqGrid('editGridRow', id, <?php echo json_encode_jsfunc($g->options["edit_options"])?>);
}
};
</script>
…
<div style="margin:10px">
<?php echo $out?>
</div>
To show view record dialog, just replace `editGridRow` with `viewGridRow`, and `edit_options` with `view_options`