2011-02-04 121 views
0

我有一個FormPanel,其中包含多個文本框項目和一個包含組合框和按鈕的字段集。該字段集具有列布局,以便並排顯示組合框和按鈕。但是,fieldset的字段標籤不顯示,即使它位於FormPanel中。當我製作字段集的佈局表單時,只會出現標籤分隔符。這是爲什麼發生?有沒有更好的方式來獲得一個表單與幾個文本框,然後並排組合框和按鈕?ExtJS FieldSet fieldLabel不顯示在FormPanel中

這是我有:

this.searchPanel = new Ext.FormPanel({ 
    border: false, 
    frame: true, 
    style: 'width:50%', 
    bodyStyle: 'padding:6px 10px 0px 10px', 
    items: [{ 
     //Several textfields 
     },{ 
      xtype: 'fieldset', 
      border: false, 
      autoHeight: true, 
      fieldLabel: 'Sort by', 
      labelStyle: 'font-weight: normal', 
      style: 'padding:0;margin-bottom:0', 
      layout: 'column', 
      items: [ 
       { 
        xtype: 'combo', 
        name: 'sort', 
        style: 'width:100%', 
        columnWidth: .5, 
        hiddenName: 'sort', 
        store: //Commented out for brevity 
        mode: 'local', 
        editable: false, 
        forceSelection: true, 
        triggerAction: 'all' 
       },{ 
        xtype: 'button', 
        style: 'margin-left: 10px', 
        columnWidth: .5 
       } 
      ] 
     } 
    ] 
}); 

回答

4

FieldSet中的沒有FieldLabel聯合像其他形式的成分,相反,他們有這樣的面板的標題。