PDA

View Full Version : How add dynamically a component on a panel



nomack84
23 Nov 2007, 2:55 PM
Hello
I need some help, I need add some components to one panel when a press a button. I try to use the add() function, but don't work.
I need add for example, a grid panel to the panel. Someone could help me??
Thxs.

efege
23 Nov 2007, 3:03 PM
You may be forgetting to call doLayout.

Have you searched the forums? There are several threads about this, like:

http://extjs.com/forum/showthread.php?t=16844&highlight=add+dynamically+component
http://extjs.com/forum/showthread.php?t=16401&highlight=add+dynamically+component
http://extjs.com/forum/showthread.php?t=15312&highlight=add+dynamically+component

EDIT: BTW, it's dynamically, not dinamically; that helps to find info faster ;)