-
6 Apr 2011 6:00 PM #1
formpanel in tabpanel
formpanel in tabpanel
Need some help with adding a form inside a tabpanel. ( ExtJS 4.0 beta2 )
forms aren't rendered in Chrome, FireFox, IE9. (except IE8)
Here's the tab:
Code:var tab = { xtype: 'tabpanel', defaults: { autoHeight: true }, items: [ { title: 'Normal Tab', items: { id: "form1", xtype: "form", url: '/test.html, items: [ { name: "name", xtype: "textfield", vtype: 'name', fieldLabel: 'test', allowBlank: false }] } }, { title: 'Normal Tab2', items: { id: "form1", xtype: "form", url: '/test2.html, items: [ { name: "name", xtype: "textfield", vtype: 'name', fieldLabel: test2, allowBlank: false }] } } ] } tab.render(document.body);
-
7 Apr 2011 6:27 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 33
i never trusted autoHeight. I suggest setting a height.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
7 Apr 2011 7:39 AM #3
I don't see the xtype for the items...
I think it should be something like this:
PHP Code:var tab = {
xtype: 'tabpanel',
defaults: {
xtype : 'panel',
autoHeight: true
},
items: [
{
title: 'Normal Tab',
items: {
id: "form1",
xtype: "form",
url: '/test.html,
items: [ {
name: "name",
xtype: "textfield",
vtype: 'name',
fieldLabel: 'test',
allowBlank: false
}]
}
},
{
title: 'Normal Tab2',
items: {
id: "form1",
xtype: "form",
url: '/test2.html,
items: [ {
name: "name",
xtype: "textfield",
vtype: 'name',
fieldLabel: test2,
allowBlank: false
}]
}
}
]
}
tab.render(document.body);
Javier Rincón aka SysCobra
Similar Threads
-
FormPanel into TabPanel
By luca.santaniello in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 11 Feb 2010, 6:07 AM -
[SOLVED] FormPanel which contains a tabPanel which contains an other FormPanel ?
By lpastor in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 1 Sep 2009, 11:40 AM -
Error: formpanel , tabpanel and formpanel again
By newname2008 in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 29 Jun 2009, 12:16 AM -
FormPanel with TabPanel
By Westside in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 1 Jul 2008, 11:05 PM -
FormPanel with TabPanel
By christocracy in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 11 Oct 2007, 9:36 AM


Reply With Quote