PDA

View Full Version : Floating Window does not close upon calling win.close()



sarabjeetd
21 May 2012, 1:14 PM
I have a simple Ext.window.Window which contains a grid panel. When I select a row in the grid, I want to close the window. I tried calling win.close() on the enclosing window but it does not work.
I am using ExtJS 4.1.0
-Sarab

sarabjeetd
21 May 2012, 1:36 PM
Update: Found the fix. Thanks.

scottmartin
22 May 2012, 7:56 AM
Please post the fix so others can benefit.

Regards,
Scott.

sarabjeetd
23 May 2012, 9:39 AM
The fix is to call the following in the "select" listener :

this.up('window').close();