[flexcoders] Re: Pass repeater data to headerrenderer

2009-04-27 Thread Amy
--- In flexcoders@yahoogroups.com, "Jack OMelia"  wrote:
>
> 
> That is VERY cool. And I like the way you use grouping in this app as well. 
> Much appreciated.

You're welcome :-)



[flexcoders] Re: Pass repeater data to headerrenderer

2009-04-26 Thread Jack OMelia

That is VERY cool. And I like the way you use grouping in this app as well. 
Much appreciated.

Jack

--- In flexcoders@yahoogroups.com, "Amy"  wrote:
>
> --- In flexcoders@yahoogroups.com, "Jack OMelia"  wrote:
> >
> > Without the headerReenderer I am able to use 
> > {repeatername.currentitem.datanode}in the label field of the Canvas but as 
> > the headerRender property is part of the Accordion and not the Canvas (and 
> > outside the repeater) I can't do that. I tried {data.datanode} but that 
> > didn't work.
> > 
> > I suppose I could manually loop through the xmllistcollection and populate 
> > it that way? I probably should have tried that last night but I guess I was 
> > tired and wasn't thinking straight. I'll give it a shot and let you know.
> 
> There's an example of using a Repeater in Accordion here:
> 
> http://flexdiary.blogspot.com/2008/09/groupingcollection-example-featuring.html
> 
> Note that this takes the idea a step forward...there's no need to repeat the 
> same content for each Accordion "section", because you can only see one at a 
> time.  So this only creates one and "rehomes" it when a new header is clicked.
> 
> -Amy
>




[flexcoders] Re: Pass repeater data to headerrenderer

2009-04-26 Thread Amy
--- In flexcoders@yahoogroups.com, "Jack OMelia"  wrote:
>
> Without the headerReenderer I am able to use 
> {repeatername.currentitem.datanode}in the label field of the Canvas but as 
> the headerRender property is part of the Accordion and not the Canvas (and 
> outside the repeater) I can't do that. I tried {data.datanode} but that 
> didn't work.
> 
> I suppose I could manually loop through the xmllistcollection and populate it 
> that way? I probably should have tried that last night but I guess I was 
> tired and wasn't thinking straight. I'll give it a shot and let you know.

There's an example of using a Repeater in Accordion here:

http://flexdiary.blogspot.com/2008/09/groupingcollection-example-featuring.html

Note that this takes the idea a step forward...there's no need to repeat the 
same content for each Accordion "section", because you can only see one at a 
time.  So this only creates one and "rehomes" it when a new header is clicked.

-Amy



[flexcoders] Re: Pass repeater data to headerrenderer

2009-04-25 Thread Jack OMelia
Without the headerReenderer I am able to use 
{repeatername.currentitem.datanode}in the label field of the Canvas but as the 
headerRender property is part of the Accordion and not the Canvas (and outside 
the repeater) I can't do that. I tried {data.datanode} but that didn't work.

I suppose I could manually loop through the xmllistcollection and populate it 
that way? I probably should have tried that last night but I guess I was tired 
and wasn't thinking straight. I'll give it a shot and let you know.

Thanks.
Jack
--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> How would you get the data into the headerRenderer if there was no repeater
> involved?
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Jack OMelia
> Sent: Friday, April 24, 2009 10:03 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Pass repeater data to headerrenderer
> 
>  
> 
> 
> 
> 
> 
> 
> Hi All,
> 
> I have an accordion component, and I'm using a repeater to populate its
> children, with data coming from an XMLListCollection. I've created an
> external headerrenderer for the accordion header to display a multi-line
> title, but I cannot figure out how to pass the data for each repeated data
> element to the header renderer. The data inside the repeater is populated
> using {repeatername.currentitem.datanode} format but I can't use that for
> the renderer. I tried writing it inline but it has to be written outside the
> repeater. Any ideas how to accomplish this?
>