diff app/view/grid/Messwert.js @ 662:7ede89336dbe

MaxLength
author Dustin Demuth <dustin@intevation.de>
date Thu, 19 Mar 2015 11:15:30 +0100
parents 927484545e9b
children 612f4f933083
line wrap: on
line diff
--- a/app/view/grid/Messwert.js	Thu Mar 19 11:05:35 2015 +0100
+++ b/app/view/grid/Messwert.js	Thu Mar 19 11:15:30 2015 +0100
@@ -67,7 +67,8 @@
                 store: Ext.data.StoreManager.get('messgroessen'),
                 displayField: 'messgroesse',
                 valueField: 'id',
-                allowBlank: false
+                allowBlank: false,
+                editable: false
             }
         }, {
             header: 'Messwert',
@@ -76,7 +77,10 @@
             width: 80,
             editor: {
                 xtype: 'numberfield',
-                allowBlank: false
+                allowBlank: false,
+                maxLength: 10,
+                allowExponential: false,
+                enforceMaxLength: true,
             }
         }, {
             header: 'Messeinheit',
@@ -94,7 +98,8 @@
                 store: Ext.data.StoreManager.get('messeinheiten'),
                 displayField: 'einheit',
                 valueField: 'id',
-                allowBlank: false
+                allowBlank: false,
+                editable: false
             }
         }, {
             header: '&lt;NWG',
@@ -113,7 +118,10 @@
             width: 80,
             editor: {
                 xtype: 'numberfield',
-                allowBlank: false
+                allowBlank: false,
+                maxLength: 10,
+                allowExponential: false,
+                enforceMaxLength: true,
             }
         }, {
             header: 'Grenzwertüberschreitung',

http://lada.wald.intevation.org