Hi,
I'm using a grouped ListGrid and would like the group node to be taller than the other normal rows. As suggested in other posts, I overloaded the getRowHeight() method to return the one I need...
The problem is that my getRowHeight() does not seem to be called, here is a code sample:
	Am I missing something ?
Thanks,
Thomas
					I'm using a grouped ListGrid and would like the group node to be taller than the other normal rows. As suggested in other posts, I overloaded the getRowHeight() method to return the one I need...
The problem is that my getRowHeight() does not seem to be called, here is a code sample:
Code:
	
	
public class BUGroupListGrid extends ListGrid {
	private int groupHeight = 40;
	
	public BUGroupListGrid() {
		this.initList();
	}
	public BUGroupListGrid(DataSource ds) {
		super(ds);
		this.initList();
	}
	
	protected void initList() {
		this.setGroupByField("BUNIT_NAME");
		this.setFixedRecordHeights(false);
	}
	
	@Override
	public int getRowHeight(ListGridRecord record, int rowNum) {
		if (isGroupNode(record))
			return groupHeight;
		else
			return super.getRowHeight(record, rowNum);
	}
}
Thanks,
Thomas
Comment