You could probably get binding to work:

<RadioButtonGroup selectedData=”{myGrid.selectedItem.channel_code}” />

 

An event handler isn’t horrible though either J

 

Matt

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jamiebadman
Sent: Thursday, June 16, 2005 7:14 AM
To: [email protected]
Subject: [flexcoders] Setting a RadioButton from data...

 

Hi,

I feel as though this should be obvious but I can't see it!

I have a RadioButtonGroup called 'channel'. In 'channel' I have two
RadioButtons - one which has a data value of 'Direct' and the
other 'Indirect'.

The datasource I'm using contains a field 'channel_code'.

When a row in the grid associated with my datasource changes, I want
to set the approproate RadioButton in the 'channel' group according
to whatever the new value of 'channel_code' is.

I can see I can obviously fire an AS function on rowChange to figure
out which RadioButton to set - but this seems extremely clunky and
I'm hoping there's a more elegant approach - perhaps using
Binding ???

Anyone offer any advice on this ?

Thanks,

Jamie.






Yahoo! Groups Links

Reply via email to