Can ListGrids have varying height rows?

Is it possible to have varying height rows in a single ListGrid? Can the height of a row be set to fit to the contents of the row? I can imagine that this could wreak havoc on the logic for fetch-ahead and scrolling.

  • david

fixedRecordHeights:false

For obvious reasons, this mode disables incremental horizontal rendering, however data paging and vertical incremental rendering work normally (which was very, very hard).

Thanks. That does exactly what I want.

However, I did notice that there is a documentation issue. When one goes to the docs for ListGrid.fixedRecordHeights it references a property named rowHeight - which is not documented for ListGrid. Perhaps this should be cellHeight? It seems that there are a number of terms floating around in ListGrid - cell (as in cellHeight), record, and row - that seem to be used interchangeably.

  • david

Hi David,

That mention of “rowHeight” is a not-so-clear reference to getRowHeight(). It’s been clarified.

About records, rows and cells: in a ListGrid, cellHeight simply controls the height of rows, but it is named what it is because of the possibly of rowSpanning cells, which only occurs in a CubeGrid. Likewise rows and records are equivalent except in the CubeGrid, where there is one record per cell. So you’re seeing terminology used in a more general way although in the specific component you’re using the terms are equivalent.

Thanks. That clears things up.

  • david