PDA

View Full Version : Dynamic LayoutDialog



moraes
13 Apr 2007, 4:18 AM
Hi,
Is it possible to create a LayoutDialog and then dynamically load the markup for the content panels before add()'ing the content panels? For now, I'm setting 'url' for each panel, but this is not exactly what I want. I would like to load *all* the markup (for all the content panels) in a single request. Is it simple?

I've been searching for this here in the forum, but I found no clue.

tryanDLS
13 Apr 2007, 5:44 AM
I haven't tried this, but you could create a hidden container div and load it via UpdateManager. Then create ContentPanels pointing to individual divs inside the container. If you need to load scripts in the CPs this may not be the right approach.

jack.slocum
13 Apr 2007, 12:30 PM
You can get each panel's UpdateManager (getUpdateManager) and call update to trigger a load immediately.

If you are working from SVN, I have added load() (like many other component have) to ContentPanel which should make this easier.