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 try this :
jQuery("#yourid").jqGrid({
...
{name:'req_name',index:'req_name', width:'9%', sortable:true},
.....
loadComplete:function(request){
...
$("[aria-describedby='yourid_req_name']", this).contextMenu('myMenu1',{
onContextMenu: function(e) {
var rowId = $(e.target).closest("tr.jqgrow").attr("id");
$("#send").html('Send Email');
return true;
}
});
},
........... and the html code :