View Full Version : [FIXED] summaryType custom function

19 Apr 2017, 12:31 AM
I'm setting up a grid with the GroupingSummaryFeature.

This feature should allow defining the summaryType property of a column as a custom function but, in the "Config" panel the property is bound to a combobox that only allows selecting predefined values (count, sum, etc.).

If I try to add a custom function named "summaryType" SA throws the following error:

Uncaught TypeError: cfg.getAllowOnViewController is not a function

Is there any workaround ?


19 Apr 2017, 7:12 AM
Thanks for the report! I have opened a bug in our bug tracker.

Please use process config as a work-around, there is tutorial https://www.youtube.com/watch?v=lLmLD3unWO4

23 Apr 2017, 10:15 PM
You could use summaryRenderer config: http://docs.sencha.com/extjs/6.2.1/modern/Ext.grid.column.Column.html#cfg-summaryRenderer
The summaryType config is going to be deprecated in upcoming Ext JS 6.5.