From 52ff88ef3896ff908db7eb3b00deab68cffcd8a2 Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 29 Apr 2014 12:21:06 +0800 Subject: [PATCH] Roo/bootstrap/TableBody.js --- Roo/bootstrap/TableBody.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Roo/bootstrap/TableBody.js b/Roo/bootstrap/TableBody.js index b9790f1451..99b47d47ce 100644 --- a/Roo/bootstrap/TableBody.js +++ b/Roo/bootstrap/TableBody.js @@ -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); } }); -- 2.39.2