diff app/view/grid/Messungen.js @ 586:a9268f5cde26

Removed row editor.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 11 Mar 2015 13:14:31 +0100
parents 4251601c6305
children
line wrap: on
line diff
--- a/app/view/grid/Messungen.js	Wed Mar 11 13:13:56 2015 +0100
+++ b/app/view/grid/Messungen.js	Wed Mar 11 13:14:31 2015 +0100
@@ -27,11 +27,6 @@
     errors: null,
 
     initComponent: function() {
-        var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
-            clicksToMoveEditor: 1,
-            autoCancel: false,
-            itemId: 'rowedit'
-        });
         this.dockedItems = [{
             xtype: 'toolbar',
             dock: 'bottom',
@@ -50,10 +45,16 @@
             header: 'Mess-ID',
             dataIndex: 'id',
             flex: 1,
+            editor: {
+                allowBlank: false
+            }
         }, {
             header: 'Nebenproben-Nr.',
             dataIndex: 'nebenprobenNr',
             flex: 1,
+            editor: {
+                allowBlank: false
+            }
         }, {
             header: 'MMT',
             dataIndex: 'mmtId',
@@ -65,6 +66,14 @@
             header: 'Messzeit',
             dataIndex: 'messzeitpunkt',
             flex: 2,
+            editor: {
+                xtype: 'datefield',
+                allowBlank: false,
+                format: 'd.m.Y',
+                // minValue: '01.01.2001', //todo: gibt es das?
+                // minText: 'Das Datum der Messung darf nicht vor dem 01.01.2001 liegen.',
+                maxValue: Ext.Date.format(new Date(), 'd.m.Y')
+            }
         }, {
             header: 'Status',
             flex: 1,

http://lada.wald.intevation.org