Roo/ContentPanel.js
authorAlan Knowles <alan@roojs.com>
Mon, 6 Aug 2012 05:28:12 +0000 (13:28 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 6 Aug 2012 05:28:12 +0000 (13:28 +0800)
Roo/ContentPanel.js

index b514568..01dbab7 100644 (file)
@@ -79,7 +79,14 @@ Roo.ContentPanel = function(el, config, content){
         this.toolbar = new Roo.Toolbar(this.toolbar);
     }
     
-    
+    // xtype created footer. - not sure if will work as we normally have to render first..
+    if (this.footer && !this.footer.el && this.footer.xtype) {
+        
+        this.footer.container = this.grid.getView().getFooterPanel(true);
+        this.footer.dataSource = this.grid.dataSource;
+        this.footer = Roo.factory(this.footer, Roo);
+        
+    }
     
     if(this.resizeEl){
         this.resizeEl = Roo.get(this.resizeEl, true);