I am trying to create a context menu on jqGrid (for each row) but can\'t find how to do so.I am currently using jQuery Context Menu (is there a better way? )but it is for th
you can have a look at the onRightClickRow event
JqGridWiki
jQuery("#gridid").jqGrid({
...
onRightClickRow: function(rowid, iRow, iCol, e){
//Show context menu ...
},
...
})
From Wiki ... onRightClickRow
onRightClickRow
rowid, iRow, iCol, e
Raised immediately after row was right clicked. rowid is the id of the row, iRow is the index of the row (do not mix this with the rowid), iCol is the index of the cell. e is the event object. Note - this event does not work in Opera browsers, since Opera does not support oncontextmenu event