Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/01/2009, 19:23
jmunoz
 
Fecha de Ingreso: julio-2008
Mensajes: 31
Antigüedad: 15 años, 9 meses
Puntos: 1
USANDO view state

hola tengo una consulta como agrego un radiobuttongroup a un view state ¿

he podido agregar label y texinput pero no me resulta con los radiobutton, alguien me puede ayudar, asi va el codigo-

<mx:states>

<mx:State name="Register">
<mx:AddChild relativeTo="{datos}" position="lastChild">
<mx:target>
<mx:FormItem id="apellidos" label="apellidos:"> <mx:TextInput/></mx:FormItem>
</mx:target>
</mx:AddChild>

<mx:AddChild relativeTo="{datos}" position="lastChild">
<mx:target>
<mx:FormItem id="ciudad" label="ciudad:"> <mx:TextInput/></mx:FormItem>
</mx:target>
</mx:AddChild>

// esto de abajo es lo que no me funciona
<mx:AddChild relativeTo="{datos}" position="lastChild">
<mx:target>
<mx:FormItem id="sexo" Label="sexo"><mx:RadioButtonGroup/></mx:FormItem>
<mx:FormItem groupName="sexo" id="a" value="M" label="M" width="39"><mx:RadioButton/></mx:FormItem>
<mx:FormItem groupName="sexo" id="b" value="F" label="F" width="42"><mx:RadioButton/></mx:FormItem>
</mx:target>
</mx:AddChild>
</mx:State>
</mx:states>



muchas gracias