I want the name of the column on right click of a column header in jqGrid. Any code would be appreciated.
All jqGrid cells have an aria-described-by property which is composed of gridId_columnname. You can use this to get your column name.
For grid cells..
var cellName = $(e.target).closest('td').attr('aria-described-by');
var gridId = 'list1';
var columnName = cellName.substr(gridId.length - 1);
For column headers, besides Oleg's answer, you can do this..
var header = $(e.target).closest('th')
var gridId = 'list1';
var columnName = header.attr('id').substr(gridId.length - 1);