CellRenderer rowHeight

Tuesday, May 16th, 2006

Is it possible to change rowHeight of DataGrid row? I dont mean same heights for all rows, but just 1 single row from collection.
For example: all rows have height 25px, but 4th row has size 50px.
Is it possible? Please help i need this for my current project.

I need rows with TextField multiline, but some rows will have just 1 row (short text), and some 2 or more (longer texts)

Thanks.

AddThis Feed Button

This is some text prior to the author information. You can change this text from the admin section of WP-Gravatar  I'm living in Bratislava, Slovakia. I'm Senior Flex, AIR Developer for my own company Flexets. Read more from this author


tagged under:

ABOUT THIS AUTHOR

I'm living in Bratislava, Slovakia. I'm Senior Flex, AIR Developer for my own company Flexets.

Get a Trackback link

6 Comments


  1. Julian Sander (dr.swank)
    Visit Site
    May 16th, 2006

    I don’t think so. The way the UIcomponents use the cell renderer is that it reuses the same batch, just changing the actual content. What that means is that the metrics are not set for the entire rendered dataSet but rather for the visible CellRenderers meaning there is no real way to allow them to adjust for various sizes.

    There may be a hack, but if you are looking for something that won’t break, then I would suggest using a ScrollPane and adding your entire list of Cell into it. You will need to write a special header class as well to sort the cells based on the events, but that may be easier then trying to get the cellRenderer to do various heights..

    cheers, J


  2. Erki Esken
    Visit Site
    May 17th, 2006

    DataGrid inherits variableRowHeight property from ListBase class. Docs say:

    variableRowHeight : Boolean
    If true, individual rows can have different height values.


  3. Administrator
    Visit Site
    May 17th, 2006

    this is Flash 8 documentation? i can’t find it

    DataGrid is inherited from List component, i cant find ListBase, nor anything from your text :) can you paste here link on LiveDocs.

    Thanks


  4. Steve
    Visit Site
    May 17th, 2006

    Hi Franto, I’m guessing you were cheking out my “ListBox Alternative” because of this. Just wanted to let you know I fixed the issue you mentioned and uploaded the new zip file. Thanks for catching that.


  5. Erki Esken
    Visit Site
    May 17th, 2006

    Sorry for the confusion, I thought you meant how to do it in Flex 2, not Flash 8.


  6. kesty
    Visit Site
    May 20th, 2006

    I saw something like this here: http://www.tufat.com/demo/datagrid/flash7/index.html

    Maybe it will help you.
    PS: this solution is for 5$.

Live Preview

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">

This site is using OpenAvatar based on
Images is enhanced with WordPress Lightbox JS by Zeo
Clicky Web Analytics