Flex DataGrid and Image as ItemRenderer

Just a quick note or advice.

When using the Image component as a drop-in item renderer in a Flex DataGrid, there are things to remember or know about sizing. You can give the individual columns a width setting of their own, but the row height is a little different:

  • either (a) set rowHeight of the grid, which will render all rows same height no matter the dimensions of the images…
  • or, (b) set variableRowHeight to true, in which can the dimensions of the images will determine the height of each individual row

April 27, 2009  Tags:   Posted in: Rich Internet Applications

One Response

  1. Geoffrey Hom - October 23, 2009

    This was very helpful to me just now. I had tried setting maxHeight in my Image component, to no avail. Using variableRowHeight solved my problem. Thank you for your post.

    –Geoff

Leave a Reply