Roo/bootstrap/TableBody.js
[roojs1] / Roo / bootstrap / TableBody.js
index 6c24081..713a9bc 100644 (file)
@@ -57,7 +57,29 @@ Roo.extend(Roo.bootstrap.TableBody, Roo.bootstrap.Component,  {
         }
         
         return cfg;
+    },
+    
+    initEvents : function()
+    {
+        
+        if(!this.store){
+            return;
+        }
+        
+        this.store = Roo.factory(this.store, Roo.data);
+        this.store.on('load', this.onLoad, this);
+        
+        this.store.load();
+        
+    },
+    
+    onLoad: function () {
+        
+//        this.clear();
+        
+        this.fireEvent('load', this);
     }
+   
 });