Flexcoders, I am trying to put a single radio button on each row of a datagrid so that I can use it as a selection for the next piece of a workflow. So far I have it displaying correctly by using a cellRenderer that is below. The problem is that I can select more then one of the radio buttons at a time so they are not mutually exclusive. Has anybody done this sort of thing before? Is there a better way to do this or am I just missing some piece of magic to make it work?
I did also try to put a RadioButtonGroup on the DataGrid but it seems to get ignored in the cellRenderer. My guess is that there is a namespacing issue. Thanks, -Kent <?xml version="1.0" encoding="utf-8"?> <mx:HBox xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Script> var labelData:String; function setValue(str:String, item:Object) { if (item == undefined) { return; } labelData = String(item.Employee); } </mx:Script> <mx:RadioButton id="Flex" groupName="itemPicker" label="{labelData}"/> </mx:HBox>
smime.p7s
Description: S/MIME cryptographic signature