PDA

View Full Version : Add textField on FormPanel without refresh



Pmithrandir
9 Dec 2008, 8:13 AM
Hello

I create an application to test GXT for my companie.

On the left side we have a tree with many form element.

The user dblclick on element, a prompt will be show and he give a label.

The widget is add on the panel.

My probleme is that the panel stay empty, but when i resize the left panel, all widget show.

Have you an idea of the problem ?

Thanks
Pierre

[code]
/**
* .
* @author pierre.bonneau
* @date 9 d

karacutey
9 Dec 2008, 11:30 AM
after you add remove or modify componentds within a container/panel, you need to call the .layout() method, this will tell gxt to render the component with the changes. so if you click on a tree item, you add a component to something, just call thatsomething.layout() and it should update.

Pmithrandir
10 Dec 2008, 3:03 AM
Thanks

resolved