var tfoot = this.el.select('tfoot', true).first();
- if(this.footerShow && this.auto_hide_footer && this.mainFoot){
+ if(this.footerShow && !this.footerColumns && this.auto_hide_footer && this.mainFoot){
this.mainFoot.setVisibilityMode(Roo.Element.DISPLAY).hide();
}
}
- if(!this.footerShow && this.summaryFooterShow) {
+ if(!this.footerShow && this.footerColumns) {
var tr = {
tag : 'tr',
};
for(var i = 0, len = cm.getColumnCount(); i < len; i++){
+ var footer = typeof(cm.config[i].footer) == "function" ? cm.config[i].footer(ds, cm) : cm.config[i].footer;
var td = {
tag: 'td',
cls : ' x-fcol-' + i,
- html: cm.config[i].summaryFooter
+ html: footer
};
tr.cn.push(td);