:: Forum >>

how to autosize row height in 2.0

I've see the posts about changing row height in 1.0 using the following code:

function rowNumber(){
    return this.getRowProperty("index");
}
workflowGrid.getRowTemplate().setClass("row", rowNumber);


However; I don't see anything about how to do that in 2.0; more to the point, I'd really like for the row height to auto-adjust, if at all possible; I saw references to setting the following CSS, but it doesn't appear to have any affect in 2.0:

.active-grid-row {
_overflow: visible;
}

.active-grid-row.gecko {
display: -moz-box;
height: auto;
width: auto;
min-width: 100%;
}


Can anyone point me in the right direction here?? I need to have some rows in the grid have their own, dynamic height. Some rows will have textareas and/or large amounts of text that I'd like to have wrap.

Thanks!
Gary
Tuesday, May 16, 2006
Okay... first off, I noticed that the CSS above was using the 1.0 convention (.active) instead of the 2.0 convention (.aw); so I've fixed that, but I still cannot seem to get the rows to auto-heigh-adjust.
Gary
Tuesday, May 16, 2006
Gary,

autosizing row height is not possible in 2.0 - the scrolling range calculation assumes that all rows have the same height. I will try to fix this in the future.
Alex (ActiveWidgets)
Tuesday, May 16, 2006
Alex -

Do you have a timeframe for when this might be fixed? This is pretty much the only complaint our users have with the grid - but it's a big one as we are trying to display a comments field that can be anywhere from 0-1023 characters. Without being able to have rows with different heights, it doesn't seem possible - unless there is some workaround I've missed?

Thanks,
Shannon
Thursday, July 20, 2006

This topic is archived.


Back to support forum

Forum search