comparison 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
comparison
equal deleted inserted replaced
661:04cf6b514e3e 662:7ede89336dbe
65 editor: { 65 editor: {
66 xtype: 'combobox', 66 xtype: 'combobox',
67 store: Ext.data.StoreManager.get('messgroessen'), 67 store: Ext.data.StoreManager.get('messgroessen'),
68 displayField: 'messgroesse', 68 displayField: 'messgroesse',
69 valueField: 'id', 69 valueField: 'id',
70 allowBlank: false 70 allowBlank: false,
71 editable: false
71 } 72 }
72 }, { 73 }, {
73 header: 'Messwert', 74 header: 'Messwert',
74 dataIndex: 'messwert', 75 dataIndex: 'messwert',
75 xtype: 'numbercolumn', 76 xtype: 'numbercolumn',
76 width: 80, 77 width: 80,
77 editor: { 78 editor: {
78 xtype: 'numberfield', 79 xtype: 'numberfield',
79 allowBlank: false 80 allowBlank: false,
81 maxLength: 10,
82 allowExponential: false,
83 enforceMaxLength: true,
80 } 84 }
81 }, { 85 }, {
82 header: 'Messeinheit', 86 header: 'Messeinheit',
83 dataIndex: 'mehId', 87 dataIndex: 'mehId',
84 width: 90, 88 width: 90,
92 editor: { 96 editor: {
93 xtype: 'combobox', 97 xtype: 'combobox',
94 store: Ext.data.StoreManager.get('messeinheiten'), 98 store: Ext.data.StoreManager.get('messeinheiten'),
95 displayField: 'einheit', 99 displayField: 'einheit',
96 valueField: 'id', 100 valueField: 'id',
97 allowBlank: false 101 allowBlank: false,
102 editable: false
98 } 103 }
99 }, { 104 }, {
100 header: '&lt;NWG', 105 header: '&lt;NWG',
101 xtype: 'numbercolumn', 106 xtype: 'numbercolumn',
102 width: 60, 107 width: 60,
111 dataIndex: 'messfehler', 116 dataIndex: 'messfehler',
112 xtype: 'numbercolumn', 117 xtype: 'numbercolumn',
113 width: 80, 118 width: 80,
114 editor: { 119 editor: {
115 xtype: 'numberfield', 120 xtype: 'numberfield',
116 allowBlank: false 121 allowBlank: false,
122 maxLength: 10,
123 allowExponential: false,
124 enforceMaxLength: true,
117 } 125 }
118 }, { 126 }, {
119 header: 'Grenzwertüberschreitung', 127 header: 'Grenzwertüberschreitung',
120 dataIndex: 'grenzwertueberschreitung', 128 dataIndex: 'grenzwertueberschreitung',
121 flex: 1, 129 flex: 1,

http://lada.wald.intevation.org