LouiSe
13 Aug 2008, 2:45 AM
Thanks for the RadioGroup feature guys!
So there is three little problems:
- when rendering with a long (longer than section width) boxLabel, the space between radios isn't increased
- fieldLabel is missing for TextField in "layout: column"
- TextField width ignored when a long boxLabel presents
Examples:
var contractingAuthorityTypeOther = new Ext.form.TextField({
fieldLabel: 'Description',
disabled: true,
width: 200,
name: 'contractingAuthorityTypeOther'
})
var F02_N01_2 = new Ext.form.FieldSet({
...
layout: 'column',
defaults: {
columnWidth: '.5',
border: true,
width: TEXT_INPUT_WIDTH
},
...
items: [{
xtype: 'radiogroup',
allowBlank: false,
hideLabel: true,
vertical: true,
columns: 1,
items: [{
checked: false,
boxLabel: LANG_FORM_F02CONTRACT_N01_2_1_1,
name: 'contractingAuthorityType',
inputValue: '1'
},
...
contractingAuthorityTypeOther
]
Just like the left section on attached image (radiogroup_boxlabel.jpg).
So there is three little problems:
- when rendering with a long (longer than section width) boxLabel, the space between radios isn't increased
- fieldLabel is missing for TextField in "layout: column"
- TextField width ignored when a long boxLabel presents
Examples:
var contractingAuthorityTypeOther = new Ext.form.TextField({
fieldLabel: 'Description',
disabled: true,
width: 200,
name: 'contractingAuthorityTypeOther'
})
var F02_N01_2 = new Ext.form.FieldSet({
...
layout: 'column',
defaults: {
columnWidth: '.5',
border: true,
width: TEXT_INPUT_WIDTH
},
...
items: [{
xtype: 'radiogroup',
allowBlank: false,
hideLabel: true,
vertical: true,
columns: 1,
items: [{
checked: false,
boxLabel: LANG_FORM_F02CONTRACT_N01_2_1_1,
name: 'contractingAuthorityType',
inputValue: '1'
},
...
contractingAuthorityTypeOther
]
Just like the left section on attached image (radiogroup_boxlabel.jpg).