PDA

View Full Version : Form not submitting values from second tab



bbxx
29 Oct 2009, 2:40 PM
I have a form which contains a TabPanel with two tabs. Each tab has a few fields and other things on it. Problem is that when I submit the form, it doesn't submit the fields from the second tab. This only happens if I do not navigate to that tab first. If I navigate to the tab, on the first time it appears to load itself or something. The form loads the fields in both tabs no matter what without a problem. And if I navigate to the tab first, the form submits all fields fine, regardless of what tab is in focus. How do the form to submit the fields from this tab without me having to click on the tab first?



var txConfigTabPanel = new Ext.TabPanel({
activeTab: 0,
frame:true,
border:false,
region: 'center',
defaults:{autoScroll: true},
items:[{
layout:'fit',
iconCls: 'x-icon-table',
title: 'Data Definition',
items: txConfigDataDefPanel
},{
layout:'fit',
iconCls: 'x-icon-tables-relation',
title: 'Feed Definition',
items: txConfigDataFeedPanel
}
]
});




var txConfigDataFeedPanel = new Ext.Panel({
frame: true,
labelWidth: 120,
autoScroll: true,
layout:'form',
items:[{
xtype: 'combo',
name: 'dateFormat',
fieldLabel: 'Date Format',
emptyText:'Select format...',
displayField: 'type',
valueField: 'id',
mode: 'local',
triggerAction: 'all',
selectOnFocus:true,
allowBlank: false,
editable: false,
store: {
xtype: 'simplestore',
fields: ['id', 'type'],
data : [
['mm/dd/yyyy', 'mm/dd/yyyy'],
['dd/mm/yyyy', 'dd/mm/yyyy']
]
}
},
...

Jaitsu
29 Oct 2009, 2:44 PM
try specifying "deferredRender: false" on your tabpanel

bbxx
29 Oct 2009, 2:46 PM
try specifying "deferredRender: false" on your tabpanel

Thank you! This did the trick:)