changeset 648:199246596bf7

Erste Ansaätze für Paging. Der Server muss dass nun noch umsetzen
author Dustin Demuth <dustin@intevation.de>
date Wed, 18 Mar 2015 11:37:43 +0100
parents dce8d67f278d
children 1f51b6020f8c
files app/store/ProbenList.js app/view/grid/FilterResult.js
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/store/ProbenList.js	Wed Mar 18 11:37:10 2015 +0100
+++ b/app/store/ProbenList.js	Wed Mar 18 11:37:43 2015 +0100
@@ -11,5 +11,7 @@
  */
 Ext.define('Lada.store.ProbenList', {
     extend: 'Ext.data.Store',
-    model: 'Lada.model.ProbeList'
+    model: 'Lada.model.ProbeList',
+    pageSize: 5,
+    remoteSort: false 
 });
--- a/app/view/grid/FilterResult.js	Wed Mar 18 11:37:10 2015 +0100
+++ b/app/view/grid/FilterResult.js	Wed Mar 18 11:37:43 2015 +0100
@@ -39,6 +39,11 @@
                 icon: 'resources/img/svn-update.png',
                 action: 'export'
             }]
+        }, {
+            xtype: 'pagingtoolbar',
+            dock: 'bottom',
+            store: 'ProbenList',
+            displayInfo: true
         }];
         this.columns = [];
         this.callParent(arguments);

http://lada.wald.intevation.org