Mercurial > lada > lada-client
comparison app/view/grid/Messwert.js @ 993:f9449df5f9fb
init messwertNwg for editing
author | Michael Stanko <mstanko@bfs.de> |
---|---|
date | Thu, 07 Jan 2016 13:58:35 +0100 |
parents | 19b78162e128 |
children | 7e801af49eeb |
comparison
equal
deleted
inserted
replaced
992:77ea9a5c5f1d | 993:f9449df5f9fb |
---|---|
97 }, { | 97 }, { |
98 header: '<NWG', | 98 header: '<NWG', |
99 width: 60, | 99 width: 60, |
100 dataIndex: 'messwertNwg', | 100 dataIndex: 'messwertNwg', |
101 editor: { | 101 editor: { |
102 xtype: 'checkbox' | 102 xtype: 'checkbox', |
103 inputValue: '<' | |
103 } | 104 } |
104 }, { | 105 }, { |
105 header: 'Messwert', | 106 header: 'Messwert', |
106 dataIndex: 'messwert', | 107 dataIndex: 'messwert', |
107 xtype: 'numbercolumn', | 108 xtype: 'numbercolumn', |
108 width: 80, | 109 width: 80, |
109 renderer: function(value) { | 110 renderer: function(value) { |
110 return value.toExponential(3); | 111 return value.toExponential(2); |
111 }, | 112 }, |
112 editor: { | 113 editor: { |
113 xtype: 'numberfield', | 114 xtype: 'numberfield', |
114 allowBlank: false, | 115 allowBlank: false, |
115 maxLength: 10, | 116 maxLength: 10, |
163 width: 80, | 164 width: 80, |
164 renderer: function(value) { | 165 renderer: function(value) { |
165 if (!value) { | 166 if (!value) { |
166 return null; | 167 return null; |
167 } else { | 168 } else { |
168 return value.toExponential(3); | 169 return value.toExponential(2); |
169 } | 170 } |
170 }, | 171 }, |
171 editor: { | 172 editor: { |
172 xtype: 'numberfield', | 173 xtype: 'numberfield', |
173 allowBlank: true, | 174 allowBlank: true, |