Trying to hide current column from header context menu:
function headItems(evt, ui){
return [
{
name: 'Hide column',
action: function (evt, ui) {
var grid = this,
column = ui.column
this.Columns().hide({ diHidden: [column.name] });
}
}
]
}
But can't get it to work properly.