How to initialize the columns that pushed the headermenu?

click : function(id) {

			      var event = $$(id).$view;
			      var menu = $$("listReport").config.headermenu;
			      $$(menu).show(event);
		      }

When analyzing other data , and initializes how the visible a node represented in invisible to existing headermenu??

$contextmenu1

If i use the console $ contextmenu1 this value comes out .

Sorry, but your question is not clear. Can you provide some more info about the problem and about the desired behavior.

{ view : “button”,
type : “iconButton”,
icon : “eye”,
label : “headMenu”,
width:90,
click : function(id) {
var event = $$(id).$view;
var menu = $$(“listReport”).config.headermenu;
$$(menu).show(event);
}
}

when i click button, head columns invisiable in datatable
in this state, parsing the other data
then The columns of the previous data are shown in headermenu
how to initialize headmenu?