Yeah, that would be cool.  But this example is overriddng 
alternateItemColors.  The developer can add as many different 
rowColors that they want (Array).  If the criteria is met, the 
backgroundColor will be used, else the default will remain.

Still trying to figure out how to get at the data in a specific grid 
cell inside the DataGrid component.  Maybe get/set the dataProvider 
to a collection and match the data item to the displayed cell.  It 
seems like the data should be available in the listBase though.  
Still searching.

-TH

--- In [email protected], "Claus Wahlers" 
<[EMAIL PROTECTED]> wrote:
>
> >  interesting idea to use css like this.
> 
> >  > .myDataGrid {
> >  >     rowBackgroundColors:
> >  >         "['.rowBackgroundColor1','.rowBackgroundColor2']";
> >  > }
> 
> If we had CSS3, we could do:
> 
> .myDataGrid:nth-child(even) { ... }
> .myDataGrid:nth-child(odd) { ... }
> 
> It'd be so cool if we could hack real CSS support into Flex 
somehow.
> cheers,
> claus.
>






 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcomponents/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to