Aug 25, 2011, 3:48 PM
[CLOSED] [1.0] Hidden Fields Not Being Submitted
Hello,
I have a page containing a FormPanel. Within this FormPanel there is a TabPanel which contains several Panel controls. If I set one of the Panel controls to hidden (server side before page render) then the tab is correctly hidden. However, when the FormPanel is submitted (using formPanel.getForm().submit(...);) the controls (TextField, TextArea etc) on the hidden Panel are not being submitted.
I think I have tracked this down to them not being in the FormPanel's BasicForm's item collection and I believe this is because the hidden tab is being removed from the TabPanel's item collection. When I look at the ExtJS code that is generated by Ext.NET I can see that the hidden tab has been created as if it was Lazy (I think that's the right term).
Do you know how I can change this behaviour so that the controls are submitted correctly?
Thanks,
Richard
I have a page containing a FormPanel. Within this FormPanel there is a TabPanel which contains several Panel controls. If I set one of the Panel controls to hidden (server side before page render) then the tab is correctly hidden. However, when the FormPanel is submitted (using formPanel.getForm().submit(...);) the controls (TextField, TextArea etc) on the hidden Panel are not being submitted.
I think I have tracked this down to them not being in the FormPanel's BasicForm's item collection and I believe this is because the hidden tab is being removed from the TabPanel's item collection. When I look at the ExtJS code that is generated by Ext.NET I can see that the hidden tab has been created as if it was Lazy (I think that's the right term).
Do you know how I can change this behaviour so that the controls are submitted correctly?
Thanks,
Richard
Last edited by geoffrey.mcgill; Aug 26, 2011 at 9:17 PM.
Reason: [CLOSED]