Login Register

autoHeight

autoHeight does not use complete row height when grid is loaded and cells contain images or cells have wrapped text

Basically I need a Grid without scrollbars, just showing all cells. So I used noscroll: true,
on the view and autoHeight="true" autoWidth="true" on the dojoType="dojox.Grid"-div...

But the result was not what I expected...
If all cell content is nice and small that works fine. But if the content of a cell is higher that the default cell height (at least that is how it looks to me..) then the Grid-autoHeight only seems to be set to NumberOfRows*defaultRowHeight, not the "real height" of the content.
(I hope you understand what I mean...)

Set max height for grid?

Is there are way to set a Max Height? If the number of rows does not
fill the Max Height, I want autoHeight behavior. But if the rows exceeds
the Max Height, I want a fixed defaultHeight behavior, with scroll bars
on the grid.

My app will refresh the grid with different data. It looks silly
to reserve enough room for 20 rows and then have only 3 to display;
autoHeight would be best. However, autoHeight is deadly when I have
500 rows to display.

Syndicate content