chot2
30 Dec 2011, 11:02 PM
Hello everyone ,
Can some please let me know how to listen to a window close event ? Basically , I want hide a button when window is clicked and show it again when window's close icon is clicked .
I have tried the following scenario's
isExist = Ext.isEmpty(Ext.getCmp('idoftheextwindow'));
isShown = (isExist) ? Ext.getCmp('idoftheextwindow').isVisible() : false;
isExist is never true and when ever i give a id to window , window is getting displayed in the bottom of the page :D . I have looked in this example http://www.fusioncube.net/index.php/extjs4-capturing-window-header-close-button-click but can someone please provide me a detailed explanation :-|
Can some please let me know how to listen to a window close event ? Basically , I want hide a button when window is clicked and show it again when window's close icon is clicked .
I have tried the following scenario's
isExist = Ext.isEmpty(Ext.getCmp('idoftheextwindow'));
isShown = (isExist) ? Ext.getCmp('idoftheextwindow').isVisible() : false;
isExist is never true and when ever i give a id to window , window is getting displayed in the bottom of the page :D . I have looked in this example http://www.fusioncube.net/index.php/extjs4-capturing-window-header-close-button-click but can someone please provide me a detailed explanation :-|