views:

692

answers:

2

i have one window in that i passed two dynamic gridPanel 1)FeaturGrid 2)gvpropertywn. i want to refresh testWin (Window) how i can? can u pls help me?

testWin = new Ext.Window({ id:'resultwindow', title: LangVarTestWinText, width: 400, height: 300, layout : 'border', closeAction:'hide',

                            closable : true,
                            //items:[FeaturGrid]
                            items:[FeaturGrid,gvpropertywn]
                        }); 

        }
A: 

Have you tried the doLayout() - I don't know if it will refresh the contents of the window, but it will redo the layout.

But my guess is that you might want to take a different approach to update the contents of your window. Please give more details to allow us to give you a better advice.

Chau
A: 

As far as i can see both items are existant after rendering the window by your config

items:[FeaturGrid,gvpropertywn]

what exactly do you want to do ? if you remove any of the items in the window be sure you dont remove the one with region: 'center' defined otherwise when calling

doLayout()

the border layout will crash. if you add a new component and it doesnt popp up call

doLayout()

again

Nexum