PDA

View Full Version : add textbox to radiogroup



chinnib37
26 Aug 2013, 5:26 AM
Hi,
I want to create a tab tab panel which contains some radio groups and textboxes. but I am unable to do this.
can anyone provide the solution.
the screen should be looks like 'http://www.cronmaker.com/'.
In that link tab panel. I want to design in the same manner.
Thanks.

AssetWorks
26 Aug 2013, 6:10 AM
...
items: [{
xtype: 'fieldcontainer',
layout: 'hbox',
items: [{
xtype: 'radio',
boxLabel: 'Every'
},{
xtype: 'textfield',
width: 50,
margin: '5'
},{
xtype:'label',
text: 'day(s)'
}]
},{
xtype: 'radio',
boxLabel: 'Every Week Day'
}]
...

chinnib37
26 Aug 2013, 9:22 PM
Thanks for the replay.
Here I want to select only one radio button at a time.
So that what I have to do?

Zinnia
27 Aug 2013, 1:43 AM
Put the name config option value same for radio field, then it will select one radio button at a time.

xtype : 'fieldcontainer',
fieldLabel : 'Size',
defaultType: 'radiofield',
defaults: {
flex: 1
},
layout: 'hbox',
items: [
{
boxLabel : 'M',
name : 'size',
inputValue: 'm'
}, {
boxLabel : 'L',
name : 'size',
inputValue: 'l'
}
]
},

here name field is same for both radio button.