Below code is used to fetch count of multiple rows selected and add the value based on column name dm
var myrow;
var id = jQuery('#grid').jqGrid('getGridParam', 'selarrrow');
console.log(id.length);
if(id.length)
{
for (var i=0;i<id.length;i++)
{
myrow = jQuery("#grid").jqGrid('getCell',id[i],'dm');
}
}
The row count is correct, but how could I add all the values from column based on row selection? myrow
gives the value of last selected row, but not the addition of all the selected rows.