how to initialize headmenu?

{ 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?

and if columns length is 50 , how do i give scroll?

how do i give scroll?

Check the next snippet
http://webix.com/snippet/a03a64e9