Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    CellFormatter messes up SummaryFunction

    I am trying to display a custom summary, but it appears the CellFormatter is applied to the return value of the SummaryFunction.

    My CellFormatter adds a dollar sign, which is causing the return value of the SummaryFunction to have a dollar sign at the beginning.

    I'd like to display text to the left of the dollar sign in the summary, but the CellFormatter seems to make this impossible.

    Is there another way to achieve this behavior?

    #2
    Originally posted by r74quinn
    I'd like to display text to the left of the dollar sign in the summary
    Is there another way to achieve this behavior?
    Code:
    field.setSummaryFunction(new SummaryFunction() {
    	@Override
    	public Object getSummaryValue(Record[] records, ListGridField field) {
    		return "TOTAL: "+records.length;
    		}
    	});

    Comment

    Working...
    X