[Lada-commits] [PATCH] Paging Enabled, RemoteSort Enabled, totalProperty für Probelist spezifisziert

Wald Commits scm-commit at wald.intevation.org
Thu Mar 19 09:51:24 CET 2015


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1426756144 -3600
# Node ID 0c1a9d7dd1e99c295b1879ef1d9953f9276be6a3
# Parent  195a253e9842a1899e4e9455e7fe66864be0a5db
Paging Enabled, RemoteSort Enabled, totalProperty für Probelist spezifisziert

diff -r 195a253e9842 -r 0c1a9d7dd1e9 app/model/ProbeList.js
--- a/app/model/ProbeList.js	Wed Mar 18 17:41:05 2015 +0100
+++ b/app/model/ProbeList.js	Thu Mar 19 10:09:04 2015 +0100
@@ -18,6 +18,7 @@
     }],
 
     idProperty: 'id',
+    totalProperty: 'totalCount',
 
     proxy: {
         type: 'rest',
diff -r 195a253e9842 -r 0c1a9d7dd1e9 app/store/ProbenList.js
--- a/app/store/ProbenList.js	Wed Mar 18 17:41:05 2015 +0100
+++ b/app/store/ProbenList.js	Thu Mar 19 10:09:04 2015 +0100
@@ -13,5 +13,5 @@
     extend: 'Ext.data.Store',
     model: 'Lada.model.ProbeList',
     pageSize: 5,
-    remoteSort: false 
+    remoteSort: true
 });
diff -r 195a253e9842 -r 0c1a9d7dd1e9 app/view/grid/FilterResult.js
--- a/app/view/grid/FilterResult.js	Wed Mar 18 17:41:05 2015 +0100
+++ b/app/view/grid/FilterResult.js	Thu Mar 19 10:09:04 2015 +0100
@@ -42,8 +42,7 @@
         }, {
             xtype: 'pagingtoolbar',
             dock: 'bottom',
-            store: 'ProbenList',
-            disabled: true,
+            store: this.store,
             displayInfo: true
         }];
         this.columns = [];


More information about the Lada-commits mailing list