问题
When I use addTotals() in a Grid, it sums every column with number fields, How to show only the ones I want?
回答1:
you can override formatTotalsRow()
and clear up what's not needed from $this->current_row[]
来源:https://stackoverflow.com/questions/9170210/is-it-possible-to-addtotals-in-agrid-to-only-certain-columns