/** * * @since 6.5.0 */Ext.define('Ext.grid.SummaryRow', { extend: 'Ext.grid.Row', xtype: 'gridsummaryrow', requires: [ 'Ext.data.summary.*' ], isSummaryRow: true, config: { // translatable: { // type: 'csstransform' // }, group: null }, defaultCellUI: 'summary', classCls: Ext.baseCSSPrefix + 'summaryrow', updateGroup: function () { this.syncSummary(); }, privates: { beginRefresh: function (context) { var me = this; context = me.callParent([ context ]); context.group = me.getGroup(); context.records = (context.group || context.store.data).items; context.summary = true; return context; }, syncSummary: function () { var me = this, owner = me.getGroup() || me.parent.store, record = owner.getSummaryRecord(), viewModel = me.getViewModel(); if (record === me.getRecord()) { me.refresh(); } else { me.setRecord(record); if (viewModel) { viewModel.setData({ record: record }); } } } } // privates });