PDA

View Full Version : Window hide and reopen error



Kloon
15 Aug 2011, 4:46 AM
Hi, I'm having some issues with closing/hiding a window and then opening it again. I keep getting a error about style of undefined.

My window code looks like thos


var groupwindow = new Ext.Window({ title: 'Groups',
width: 600,
height: 500,
closable: true,
closeAction: 'hide',
modal: true,
layout: 'fit',
items: [groupform]
});

when I call groupwindow.close() it closes fine but when I want to open it again with groupwindow.show() I get the js error, any reason why this would happen?

gnube
15 Aug 2011, 5:55 AM
Check the .hide() method. The link below includes the documentation where you can also see the methods/events etc available on the objects.

http://docs.sencha.com/ext-js/4-0/#/api/Ext.window.Window-method-hide

Kloon
15 Aug 2011, 6:01 AM
I could have sworn I tried that aswell, but thanks, seems to have done the trick.