You need to break through the source to see it there, but it GridPanelhas a property viewthat is it GridView, which in turn has a property hmenuthat appears in the menu that appears when you click on one of the column headers.
So, with GridPanel, called GridPanel(after displaying it) you can do the following:
gridpanel.view.hmenu.add({
text: 'reset',
handler: function() {
// reset magicks
}
});
source
share