Skip to content

How to get currently selected row?

Here's the code snippet to obtain a selected SINGLE row

var row_id = $('#myTable').jqGrid ('getGridParam', 'selrow')

Get ALL selected rows in array (with multiple select enabled)

var rows = jQuery("#myTable").jqGrid("getGridParam","selarrrow");


Feedback and Knowledge Base