Roo/bootstrap/PagingToolbar.js
authoredward <edward@roojs.com>
Tue, 8 Mar 2016 04:15:30 +0000 (12:15 +0800)
committeredward <edward@roojs.com>
Tue, 8 Mar 2016 04:15:30 +0000 (12:15 +0800)
Roo/bootstrap/PagingToolbar.js

index 184a451..bcef7e4 100644 (file)
@@ -21,6 +21,12 @@ Roo.bootstrap.PagingToolbar = function(config)
 {
     // old args format still supported... - xtype is prefered..
         // created from xtype...
+    if (this.store) {
+        this.store= Roo.factory(this.store, Roo.data);
+        this.ds = this.store;
+        this.ds.xmodule = this.xmodule || false;
+    }
+    
     var ds = config.dataSource;
     Roo.log(config);
     this.toolbarItems = [];