本帖最后由 rootless 于 2010-05-30 20:38:00 编辑

解决方案 »

  1.   

    formPanel的布局是column,就不会自动出现前的标签了,
    方法一:formPanel继续使用form布局
    方法二:在ComboBox外层包装上FormPanel
    new Ext.FormPanel(
    items:[
    new Ext.form.ComboBox({
                    fieldLabel: '任务类型',
                    hiddenName:'reportCategory1',
                    store: new Ext.data.SimpleStore({
                        fields: ['num', 'name'],
                        data : [[1,'材料'],[2,'零件']]
                    }),
                    valueField:'num',
                    displayField:'name',
                    typeAhead: true,
                    mode: 'local',
                    triggerAction: 'all',
                    emptyText:'请选择...',
                    selectOnFocus:true,
                    width:120
                  })
    ]
    )