Roo/bootstrap/panel/Grid.js
authorAlan Knowles <alan@roojs.com>
Fri, 14 Jul 2017 02:07:15 +0000 (10:07 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 14 Jul 2017 02:07:15 +0000 (10:07 +0800)
Roo/bootstrap/panel/Grid.js

index ea9994f..1a5dff9 100644 (file)
@@ -38,10 +38,16 @@ Roo.bootstrap.panel.Grid = function(config){
         delete config.toolbar;
     }
     
-    this.wrapper.dom.appendChild(config.grid.getGridEl().dom);
-    config.el = this.wrapper;
-    
     Roo.bootstrap.panel.Grid.superclass.constructor.call(this, config);
+       
+    this.grid = new config.grid.xns[config.grid.xtype](config.grid);
+    this.grid.render(this.wrapper);
+                
+    
+    //this.wrapper.dom.appendChild(config.grid.getGridEl().dom);
+    // ??? needed ??? config.el = this.wrapper;
+    
+    
     
   
     // xtype created footer. - not sure if will work as we normally have to render first..