PDA

View Full Version : Ext.form.FormPanel submit problem



hirendave
26 Nov 2010, 5:26 AM
Hello,

This may be stupid question. I have a ExtJs form panel.Inside it fields are distributed in various tabs in tabpanel. Its for editing data. When it loads it gets populated with some data. When I submit the form it only submits the changed values rest of the fields are not getting submitted. I show this is firebug. I want to submit all the fields whether changed or not.

Thanks in advance for help.

Regards,
Hiren Dave

Condor
26 Nov 2010, 8:10 AM
You probably forgot to configure your tabpanel with deferredRender:false.

hirendave
26 Nov 2010, 10:31 AM
Thank you very much condor that solved my problem. But new issue is there. Now initially nothing is visible in tabpanel. But when I switch tabs at that time controls become visible.

can you please help me on this.

Thanks in advance.

hirendave
26 Nov 2010, 11:06 AM
Solved it by setting active tab on load. But still looking forward to other better solution.

Condor
26 Nov 2010, 12:48 PM
layoutOnTabChange:true?

hirendave
27 Nov 2010, 12:14 AM
That did not work.

sandeepan
23 Nov 2011, 2:05 AM
layoutOnTabChange:true fires the doLayout on any tab change of that tab panel.