I think the post below answers my question, except I don't understand it.
What I want to accomplish is to have the grid display a set of records and if I double click on one, to have a function execute. How can I accomplish this?
The Post I found searching the Forums was this:
Q) How can i get IDs of the selected rows of grid?
on client side, you can have ids in this way.
var selr = jQuery('#grid').jqGrid('
getGridParam','selrow'); // returns null if no row is selected (single row)
// array of id's of the selected rows when multiselect options is true. Empty array if not selection
var selr = jQuery('#grid').jqGrid('getGridParam','selarrrow');
Following code snippet will execute your JS code on row double click. This will be placed in before we echo $out variable.
In html part …
<script>
var opts = {
'ondblClickRow': function (id) {
// your dbl click JS code – id param is record id
}
};
</script>
…
<div style="margin:10px">
<?php echo $out?>
</div>