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


__._,_.___

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





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to