PDA

View Full Version : [Ext JS 4.1] Renaming column header from column menu



darkhorni
15 Jun 2012, 3:21 AM
36278
Is it possible add a an item to this menu in order to rename the column header?

scottmartin
15 Jun 2012, 12:32 PM
You could create an override to add the men item



Ext.override(Ext.ux.grid.FiltersFeature,{
onMenuBeforeShow: function(menu) {
// add your menu item here; see filters menu for reference
}
});


Scott

darkhorni
15 Jun 2012, 11:57 PM
You could create an override to add the men item



Ext.override(Ext.ux.grid.FiltersFeature,{
onMenuBeforeShow: function(menu) {
// add your menu item here; see filters menu for reference
}
});


Scott

I have added the menu item with

menu.add({
checked: false,
text: 'rename',
itemId: 'rename',
});
but it has override the filter.