Results 1 to 3 of 3

Thread: Form not submitting values from second tab

  1. #1
    Ext User
    Join Date
    Aug 2009
    Posts
    100
    Vote Rating
    0
      0  

    Default Form not submitting values from second tab

    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?

    Code:
    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
                }
            ]
        });
    Code:
        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']
                                ]
                    }
                   },
    ...

  2. #2
    Sencha User Jaitsu's Avatar
    Join Date
    Sep 2008
    Location
    Liverpool, England
    Posts
    160
    Vote Rating
    1
      0  

    Default

    try specifying "deferredRender: false" on your tabpanel

  3. #3
    Ext User
    Join Date
    Aug 2009
    Posts
    100
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by Jaitsu View Post
    try specifying "deferredRender: false" on your tabpanel
    Thank you! This did the trick

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •