-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have the following function to get the column header name when mouse over the pivot table.
public void onPivotTooltip(PivotUIEvent event) {
if (event.getFieldType() == PivotField.AREA_ROW) {
rawDataLayout.appendChild(new Label(event.getRowContext().getNode().getField().getTitle()));
popup.open(pivot, "overlap");
} else {
popup.close();
}
}
This works well for a few number of rows. If the number of rows increases, "event.getRowContext().getNode()" obtains null in some rows.
And is there anyone have tried to get the label on the cell?
How to get the label "Price" and "Mileage" from the following pivottable?
http://books.zkoss.org/images/d/d0/ZKPivotEsn_work_pivot_22.png
Asked: 2011-06-21 07:38:00 +0800
Seen: 204 times
Last updated: Jun 21 '11