0
votes

Want to fire a method on header column selector on hide so that I can capture and save the selected items to display when user returns to the page. Tried following things which did NOT WORK Ext.getCmp("gridBox").headerCt.getMenu().on('hide', this.addUpdateAnalysisSetting, this); Ext.getCmp("gridBox").column.menu.on('hide', this.addUpdateAnalysisSetting, this);

Even tried to capture the event of second menu as below but even that didnt work Ext.getCmp("gridBox").headerCt.getMenu().items.last().menu.on('hide', this.addUpdateAnalysisSetting, this); Any help is appreciated

1

1 Answers

0
votes

Saving the state of the grid (shown/hidden columns, their widths) does not need to be that complicated. You only need to do three things:

  1. Initialize a state provider
  2. Set stateful:true on the grid
  3. Set a stateId on the grid