-
13 Aug 2008 2:45 AM #1
[2.2] RadioGroup, boxLabel width
[2.2] RadioGroup, boxLabel width
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:
Code:var contractingAuthorityTypeOther = new Ext.form.TextField({ fieldLabel: 'Description', disabled: true, width: 200, name: 'contractingAuthorityTypeOther' })Code:var F02_N01_2 = new Ext.form.FieldSet({ ... layout: 'column', defaults: { columnWidth: '.5', border: true, width: TEXT_INPUT_WIDTH }, ...Just like the left section on attached image (radiogroup_boxlabel.jpg).Code: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 ]http://louise.hu / poetry / development / C, Java, JavaScript, HTML / ExtJS / Alfresco
-
13 Aug 2008 3:08 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 43
Issue 1:
No comment.
Issue 2:
This is by design. A field doesn't render a fieldLabel, the container with layout:'form' does.
Use:
Issue 3:Code:{ xtype: 'panel', layout: 'form', items: contractingAuthorityTypeOther }
Doesn't apply when using code from issue 2.
-
13 Aug 2008 3:23 AM #3
Thanks for your answer, but Issue #1 is most important for me!
Is this a by-design effect, or a bug in current Ext2.2 release?
Any workaround?http://louise.hu / poetry / development / C, Java, JavaScript, HTML / ExtJS / Alfresco
-
13 Aug 2008 4:44 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 43
You could use this workaround:
Code:<style type="text/css"> .x-form-check-group .x-form-check-wrap, .x-form-radio-group .x-form-radio-wrap { height: auto; } </style>
-
13 Aug 2008 8:25 AM #5
Thanks again! Works perfectly.
http://louise.hu / poetry / development / C, Java, JavaScript, HTML / ExtJS / Alfresco
-
18 Mar 2011 1:25 AM #6
How to put width of each radio box in radiogroup?
How to put width of each radio box in radiogroup?
This is my code:
items:[{
xtype: 'radiogroup',
id: 'exp_type',
columns: 4,
width:850,
height:30,
cls:'radiogroup',
items: [new Ext.form.Radio({
boxLabel: 'computer ',
name: 'base',
inputValue:'sig',
width:80,
cls:'test',
checked:true,
id:'radio_sig'
}),
new Ext.form.Radio({
boxLabel: 'software ',
name: 'base',
width:80,
inputValue:'con'
}),
new Ext.form.Radio({
boxLabel: 'Export courrier ',
name: 'base',
inputValue:'cour'
}),
new Ext.form.Radio({
boxLabel: 'computer and sofeware ',
name: 'base',
width:150,
inputValue:'mail'
})]
}]
It is not work for attribute "width" and "cls".
-
23 Apr 2011 3:22 AM #7


Reply With Quote