changeset 662:7ede89336dbe

MaxLength
author Dustin Demuth <dustin@intevation.de>
date Thu, 19 Mar 2015 11:15:30 +0100
parents 04cf6b514e3e
children 1c5a4b419149
files app/view/grid/Messwert.js
diffstat 1 files changed, 12 insertions(+), 4 deletions(-) [+]
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