I found alex's example on his blog. It worked perfectly for me. Thanks Alex! Here is the link to his example:
http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html It is under the intuitive title BackgroundColor in Item Renderers :) thanks --- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > My direct experience with only with ListitemRenderer and I have not dug > into DataGridItemRenderer, so read my suggestions with that in mind. > > > > First, you said your goal was to color the background. As Alex > suggested, see his example on that. > > > > If you don't like that, extend DataGridItemRenderer, leave UITextField > and figure out how to color the background. Maybe > "backgroundFillColor"? > > Tracy > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of mt1_18 > Sent: Monday, March 03, 2008 2:23 PM > To: [email protected] > Subject: [flexcoders] Re: variable row height with item renderer > > > > thanks for responding. I am not sure exactly how to modify those > classes. DataGridItemRenderer does not have a measure() method. > Should I create a similar class DataGridItemRendererCustom and have it > extend TextArea instead of UITextField? Can you tell me what exactly > I would need to modify? > > Thanks so much for the help. > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> > , "Tracy Spratt" <tspratt@> wrote: > > > > Look at the ListItemRenderer.as or DataGridItemRenderer.as, > specifically > > the "measure()" method. You will need to do that in your renderer. > > > > > > > > In fact, I might advise starting with that code for any renderer, and > > modifying it as needed. > > > > > > > > Tracy > > > > > > > > ________________________________ > > > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> > [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> > ] On > > Behalf Of mt1_18 > > Sent: Monday, March 03, 2008 10:50 AM > > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] variable row height with item renderer > > > > > > > > I am using a textArea item renderer because I need to change the > > background color of the cell. However, the text in the textArea is > > more than the height of the row and I am getting scrollbars on the > > textArea component even though i am using variableRowHeight=true. > > When I remove the item renderer the row height changes so that there > > is no scrollbar in the cell. How can I have the entire contents of > > the cell be displayed w/o scrollbars and at the same time change the > > background color of the cell. I hope the question is clear > > > > Thanks > > >

