PDA

View Full Version : Resize Advanced Data Grid to remove empty final rows


ms10
08-13-2008, 01:54 PM
I have an issue with setting the heights of both the advanced data grid and the olapdatagrid.

I find that when I set the percentHeight to 100%, space in the form of empty rows pads out the bottom of the grid. This isn't so apparent with the default stying, but when the styling involves gridlines, and the such, it looks like the grid contains empty rows. This is even more of a problem when the grid's bottom row is a Total row.

The closest i've come to a solution is to iterate over listItems, and if each item has a sub-array (ie contains data) i add its height (taken from rowInfo) to a running total (plus the headerHeight). I then set this new height on update_complete. This is a bad hack however, and results in the grid being visibly rendered twice.

If anyone has any ideas i'd be very grateful.
Mark