18

I am using Ext JS 3 and I need to get ahold of the menu of my column header. I tried to use afterrender of grid.

My code is somewhat like

listeners: {
    afterrender: function() {                                        
        var menu = this.headerCt.getMenu();// wrong
    }
}

But apparently headerCt is not available in Ext JS 3. What other possible options can I use? I did not get any ideas from the Docs.

David
  • 4,266
  • 8
  • 34
  • 69

1 Answers1

12

For getting column header menu in lower version of ExtJS try this.

afterRender: function () {
    var getMenu = this.view.hmenu.items;
}
Narendra Jadhav
  • 10,052
  • 15
  • 33
  • 44
UDID
  • 2,350
  • 3
  • 16
  • 31
  • Thanks a lot. Now I am getting Menu Items in column header. Thanks for all help. It works. – David Aug 27 '16 at 07:24