Access row data in jqGrid custom formatter
问题 We have a grid with datatype json. We have the following custom formatter: function opsFormatter (cellvalue, options, rowObject){ '<a title=MA href=javascript:showDialog(' + rowObject[5] + ')>MA<a>' + ' '; } Instead of rowObject[5] is there any object notation where we can specify the actual column name ("account")? Ie: rowObject.account . This is the grid definition: $("#grid-pos").jqGrid({ colNames:['Product', 'Type','Expiry', 'Put Call', 'Strike', 'Account','Long','Short', 'Open Qty',