>This is pretty thoroughly documented in the docs for
>repeater.

Is it? I asked the group about the same thing myself recently, and I
didn't see anything in the Repeater docs in the Flex library reference.
I just checked, and there's no mention in either Flex 2 or 3 docs of
this specific child-naming behavior.

The QuickStart Basics section does explain this, now that I've search
some more, but this should really be in the core library reference.

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-----Original Message-----
From: Amy <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: [flexcoders] Re: RadioButtonGroup id not settable using
repeater index...
Date: Tue, 16 Sep 2008 21:28:46 -0000

--- In [email protected], "Durres76" <[EMAIL PROTECTED]> wrote:
>
> hey,
> i'm generating radio button groups using a repeater, but am getting
> errors when trying to set the id of RadioButtonGroup using the
> repeater index. The code is below. How else can you generate multiple
> groups dynamically
> 
> <Repeater id="rpt">
> <RadioButtonGroup id="{rpt.currentIndex}">
> some Radio buttons.
> </RadioButtonGroup>
> </Repeater>
> 
> Thanks,
> d
>

Just use something like 

<RadioButtonGroup id="group">

Then group[0] will refer to the first one, group[1] will refer to the 
second one, etc. This is pretty thoroughly documented in the docs for 
repeater.

HTH;

Amy




 


Reply via email to