PDA

View Full Version : RadioGroup with textfield after label of radio button



maho2nd
15 Dec 2010, 2:05 AM
Hallo,

I have a RadioGroup with 2 radio buttons. Now I need a Textfield after the last radio button.
Something like:

( ) label1
(o) label2 [textfield]

Is this possible?

feyyaz
16 Dec 2010, 11:56 AM
yes it is, use something like this:



{
xtype: 'radiogroup',
fieldLabel: 'Single Column',
itemCls: 'x-check-group-alt',
columns: 1,
items: [
{boxLabel: 'Item 1', name: 'rb-col', inputValue: 1},
{xtype:'container',layout:'hbox',align:'stretch',
items:[{xtype:'radio',boxLabel: 'Item 2', name: 'rb-col', inputValue: 2, checked: true,flex:1},
{xtype:'textfield',felx:1}]},
{boxLabel: 'Item 3', name: 'rb-col', inputValue: 3}
]
}

maho2nd
20 Dec 2010, 4:06 AM
thanks! it works.