Hi programmister,
Please, look at: https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/contextmenu.htm?material. The sample demonstrates how to display a context menu in jqxGrid. You can select with jQuery the column headers by using the $(“#grid .jqx-grid-column-header”) selector where #grid is the ID of the Grid. For Each element in that selection, you can use jQuery’s offset(), width() and height() methods to determine whether the event.pageX and event.pageY coordinates are inside. Then you can get the index of the clicked column. As you initialized the Grid passing a columns array, by using that index you can get the clicked column, too.
Regards,
Peter