PDA

View Full Version : How can i use Radio



ramires
21 May 2007, 10:27 AM
Hello, I

damien
21 May 2007, 10:42 AM
i copy your code into a form from my webpage and it looks good.



new Ext.form.Radio({
fieldLabel: 'Feminino',
name: 'sexo',
value: 'F',
width:100
}),


Can you tell me what is your problem?

You need the
form.end();
and
form.render();

Look at examples in this forum.

ramires
21 May 2007, 10:57 AM
i copy your code into a form from my webpage and it looks good.



new Ext.form.Radio({
fieldLabel: 'Feminino',
name: 'sexo',
value: 'F',
width:100
}),


Can you tell me what is your problem?

new Ext.form.Radio({
fieldLabel: 'Feminino',
name: 'sexo',
value: 'F',
width:100
}),

I need a Radio with


() male () feminine

:)

ramires
21 May 2007, 12:15 PM
ok.. I

ramires
22 May 2007, 6:13 AM
my script its okay now

see:

var top = fs.fieldset({legend:'My Color'});
var topLeft = new Ext.form.Column();
fs.start(topLeft);
fs.add(
new Ext.form.Radio({
fieldLabel: 'RED',
name: 'colors',
value: 'red',
checked: true,
width:10
})
);
fs.end(topLeft);

var topRight = new Ext.form.Column();
fs.start(topRight);
fs.add(
new Ext.form.Radio({
fieldLabel: 'Blue',
name: 'colors',
value: 'blue',
width:10
})
);
fs.end(topRight);
fs.end(top);