I've managed to bypass the problem using item renderer like: <?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns="src.itemRenderers.*" xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:RadioButton selected="{selected}" /> <mx:Script> <![CDATA[ public override function set data(value : Object) : void { selected = value.selected; super.data = value; } [Bindable] protected function get selected() : Boolean { return _selected; } protected function set selected(value : Boolean) : void { _selected = value; } private var _selected : Boolean; ]]> </mx:Script> </mx:Canvas>
However, in this case I have to "emulate" RadioButtonGroup behavior manually because RadioButtons are independent. R. On 12/6/06, Roman Protsiuk <[EMAIL PROTECTED]> wrote: > Hi, everyone. > > I'm really tired of DataGrid. > Why does > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="vertical" > horizontalAlign="left"> > > <mx:RadioButton id="one" label="one" /> > <mx:RadioButton id="two" label="two" /> > <mx:RadioButton id="three" label="three" /> > <mx:RadioButton id="four" label="four" > creationComplete="{four.selected = true;}" /> > <mx:RadioButton id="five" label="five" /> > > </mx:Application> > > work good and > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="vertical" > horizontalAlign="left" > creationComplete="{four.selected = true;}"> > > <mx:RadioButton id="one" label="one" /> > <mx:RadioButton id="two" label="two" /> > <mx:RadioButton id="three" label="three" /> > <mx:RadioButton id="four" label="four" /> > <mx:RadioButton id="five" label="five" /> > > </mx:Application> > > work good but if i set selected into an item renderer as described in > previous message it doesn't? I've already tried doing it on creation > complete. Nothing. Even tried initialize (dunno why). Nothing. > > Maybe somebody knows good approach to working with List-based controls > and custom item renderers (alike RadioButton, CheckBox etc). > > R. >

