cfg.cn.push(this.renderBody());
- if(this.footerShow){
+ if(this.footerShow || this.summaryFooterShow){
cfg.cn.push(this.renderFooter());
}
- if(!this.footerShow && this.summaryFooterShow) {
- cfg.cn.push(this.renderSummaryFooter());
- }
-
// where does this come from?
//cfg.cls+= ' TableGrid';
}
return footer;
},
-
- renderSummaryFooter : function()
- {
- var footer = {
- tag: 'tfoot',
- cn : []
- };
-
- var cm = this.cm;
-
- for(var i = 0, len = cm.getColumnCount(); i < len; i++){
-
- var c = {
- tag: 'td',
- cls : 'x-fcol-' + i,
- style : '',
- html: ''
- };
-
- footer.cn.push(c)
- }
-
- return footer;
- },
-
-
onLoad : function()
{
}
}
- if(!this.footerShow && this.summaryFooterShow) {
+ if(this.footerShow && this.summaryFooterShow) {
for(var i = 0, len = cm.getColumnCount(); i < len; i++){