Wow...I feel so foolish...haha

Thanks!



--- In [email protected], "Brendan Meutzner" <[EMAIL PROTECTED]>
wrote:
>
> Do you have variableRowHeight set to true on the DataGrid instance?
> 
> 
> 
> On 6/21/06, Charles <[EMAIL PROTECTED]> wrote:
> >
> >   Hi everyone,
> >
> > I am populating a datagrid, and for some items, there are
pictures, and
> > others there are not.  I am displaying the pictures using an
itemRenderer
> > (the only way I know how), and so to fit the pictures, I've set
the height
> > of the renderer to be 100.  This works fine.  However, for the
items that do
> > NOT have pictures, the height is still 100, and not the default
10.  So,
> > what I would like to know is if there is a way to get variable
height on
> > datagrid rows?
> >
> > I've tried doing something like this in the beginning of my
> > itemRenderer...
> >
> >     if (has_picture)
> >         height = 100;
> >     else
> >         height = 10;
> >
> > ...but what happens is if the FIRST item in the datagrid has a
picture,
> > then ALL of the rows will be set to a row height of 100.  If  the
first item
> > does NOT have a picture, then all of the rows will be set to a row
height of
> > 10.  So I'm stuck.
> >
> > Thanks in advance.
> >
> >
> > Charles
> >  
> >
>










------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

<*> 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