PDA

View Full Version : Toolbar rendering and setUrl()



seade
16 Aug 2007, 11:20 PM
I am using Ext 1.1.

I have a bunch of tabs in the center of a BorderLayout. Some of the tabs have a toolbar defined and also use setUrl() with loadOnce set to true. I am finding that the toolbar for these tabs is not being rendered. When I activate the tab by clicking on it, the content is retrieved and the toolbar is not included.



var toolbar1 = new Ext.Toolbar('tb-1');
toolbar1.addText("foo");
mainLayout.add('center', var tab1 = new Ext.ContentPanel('t1', {
fitToFrame: true, autoScroll: true, title: Ext.util.Format.ellipsis("Section Practice", 35),
toolbar: toolbar1, closable: false }));
tab1.setUrl("/frag.html", null, true);So why wouldn't the toolbar render when I click on the tab?

Note that the tab is activated using showPanel('t1') the toolbar does render.

Related question: Is there a way I can include the toolbar definition in the content that is being retrieved?

TIA,

Scott

seade
19 Aug 2007, 9:38 PM
I have raised this as a bug: http://extjs.com/forum/showthread.php?t=11459

Scott