PDA

View Full Version : Submit TabPanel



boston-george
3 Jun 2011, 12:23 AM
Hi guys!

i've a tab panel with two items, inside a form!
now when i click on "save button" of this form i see into $_POST only active tab,
than if i click into second tab, both tab of tabpanel are into $_POST.




listeners: {
click: function() {

Ext.getCmp('form').getForm().submit({
url: '/XXX/public/clienti/detcli',
params:{
action: 'dettCli',
mode: 'INSERT'

},
success: function(form, action){
alert('ok');
}
});
}
}


i need that also the first one, with only first tab active, when i click on "save button" both tab of tabpanel are into $_POST

thanks!

friend
3 Jun 2011, 5:19 AM
Try adding lazyInit: false to the container which acts as your second tab.

skirtle
3 Jun 2011, 5:55 PM
There's a config option for a TabPanel called deferredRender: set it to false.