I can provide the tools code sample from my grid:
Code:
tools: [{
type: 'maximize',
tooltip: 'Maximieren',
handler: function(event, toolEl, panel) {
var win = new Ext.Window({
title: "Vollbild-Modus",
autoScroll: false,
closeAction: 'hide',
constrainHeader: true,
resizable: false,
floatable: false,
items: [grid],
listeners: {
show: function(window, eOpts) {
grid.tools.maximize.hide();
},
beforehide: function(window, eOpts) {
console.log("beforehide");
window.items.first().tools.maximize.show();
window.items.first().el.appendTo(Ext.get(grid.renderTo));
//window.items.first().el.setWidth(500);
//window.items.first().el.repaint();
},
hide: function(window, eOpts) {
console.log("hide");
}
}
});
win.show().maximize();
}
}],
The grid itself is part of an nonpublic ajax driven application. The variable grid contains the created Ext.grid.Panel.
Does this info help?