Roo/bootstrap/TableBody.js
authorEdward <edward@roojs.com>
Tue, 29 Apr 2014 04:21:06 +0000 (12:21 +0800)
committerEdward <edward@roojs.com>
Tue, 29 Apr 2014 04:21:06 +0000 (12:21 +0800)
Roo/bootstrap/TableBody.js

index b9790f1..99b47d4 100644 (file)
@@ -57,6 +57,24 @@ 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);
+        
+    },
+    
+    onLoad: function () {
+        
+        this.clearTabel();
+        
+        this.fireEvent('load', this);
     }
    
 });