Roo/bootstrap/TableBody.js
authorEdward <edward@roojs.com>
Tue, 29 Apr 2014 05:00:06 +0000 (13:00 +0800)
committerEdward <edward@roojs.com>
Tue, 29 Apr 2014 05:00:06 +0000 (13:00 +0800)
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);
     }
+   
 });