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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- Re: [flexcoders] How can I get variable height in datagri... Brendan Meutzner
Reply via email to
Do you have variableRowHeight set to true on the DataGrid instance?
On 6/21/06, Charles <[EMAIL PROTECTED]
> wrote:

