Jqgrid sample code for setting all of of selection and getting the value of the selected row
1. Add multiselect: true
**2. Gets the value of the selected row **
var rowData = jQuery('#List').jqGrid('getGridParam','selarrrow');
if(rowData.length)
{
for(var i=0;i<rowData.length;i++)
{
var name= jQuery('#List').jqGrid('getCell',rowData[i],'name');//Name is an attribute in the colModel
alert(name);
}
}
**3. Set a row to select ** JQuery (’ # List ’). JqGrid (’ setSelection ’, ‘5’);