changeset 656:0c1a9d7dd1e9

Paging Enabled, RemoteSort Enabled, totalProperty für Probelist spezifisziert
author Dustin Demuth <dustin@intevation.de>
date Thu, 19 Mar 2015 10:09:04 +0100
parents 195a253e9842
children 74cc7f086d83 bf15bfea2fca
files app/model/ProbeList.js app/store/ProbenList.js app/view/grid/FilterResult.js
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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',
--- 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
 });
--- 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 = [];

http://lada.wald.intevation.org