I updated the demo for you. Now http://ok-soft-gmbh.com/jqGrid/TestSamle/Admin1.htm does what you need. (I removed the second grid from the code to keep the code smaller):

Some comments on the implementation. Formatting actions adds action elements inside a div. Each “action button” has HTML markup, as shown below.
<div style="margin-left: 5px; float: left;" class="ui-pg-div ui-inline-del" onmouseover="jQuery(this).addClass('ui-state-hover');" title="Delete selected row" onmouseout="jQuery(this).removeClass('ui-state-hover');" onclick="$.fn.fmatter.rowactions('10','List1','del',0);"> <span class="ui-icon ui-icon-trash"></span> </div>
So that the appearance of the custom button is close to the original "action buttons", I do loadComplete inside as follows:
loadComplete: function () { var grid = $(this), iCol = getColumnIndexByName(grid,'act');
Where
var getColumnIndexByName = function(grid,columnName) { var cm = grid.jqGrid('getGridParam','colModel'), i=0,l=cm.length; for (; i<l; i+=1) { if (cm[i].name===columnName) { return i;
You can change the custom button icon from "ui-icon-document" and change the click event descriptor code for what you need. I showed how you can get rowid. Using it, you can use the getRowData method to get other cells in the row.
UPDATED: The current version of the free jqGrid supports an easy way to implement custom buttons. Watch the demo .
Oleg
source share