Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
585:4251601c6305 | 586:a9268f5cde26 |
---|---|
25 | 25 |
26 warnings: null, | 26 warnings: null, |
27 errors: null, | 27 errors: null, |
28 | 28 |
29 initComponent: function() { | 29 initComponent: function() { |
30 var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { | |
31 clicksToMoveEditor: 1, | |
32 autoCancel: false, | |
33 itemId: 'rowedit' | |
34 }); | |
35 this.dockedItems = [{ | 30 this.dockedItems = [{ |
36 xtype: 'toolbar', | 31 xtype: 'toolbar', |
37 dock: 'bottom', | 32 dock: 'bottom', |
38 items: ['->', { | 33 items: ['->', { |
39 text: 'Hinzufügen', | 34 text: 'Hinzufügen', |
48 }]; | 43 }]; |
49 this.columns = [{ | 44 this.columns = [{ |
50 header: 'Mess-ID', | 45 header: 'Mess-ID', |
51 dataIndex: 'id', | 46 dataIndex: 'id', |
52 flex: 1, | 47 flex: 1, |
48 editor: { | |
49 allowBlank: false | |
50 } | |
53 }, { | 51 }, { |
54 header: 'Nebenproben-Nr.', | 52 header: 'Nebenproben-Nr.', |
55 dataIndex: 'nebenprobenNr', | 53 dataIndex: 'nebenprobenNr', |
56 flex: 1, | 54 flex: 1, |
55 editor: { | |
56 allowBlank: false | |
57 } | |
57 }, { | 58 }, { |
58 header: 'MMT', | 59 header: 'MMT', |
59 dataIndex: 'mmtId', | 60 dataIndex: 'mmtId', |
60 flex: 1, | 61 flex: 1, |
61 editor: { | 62 editor: { |
63 } | 64 } |
64 }, { | 65 }, { |
65 header: 'Messzeit', | 66 header: 'Messzeit', |
66 dataIndex: 'messzeitpunkt', | 67 dataIndex: 'messzeitpunkt', |
67 flex: 2, | 68 flex: 2, |
69 editor: { | |
70 xtype: 'datefield', | |
71 allowBlank: false, | |
72 format: 'd.m.Y', | |
73 // minValue: '01.01.2001', //todo: gibt es das? | |
74 // minText: 'Das Datum der Messung darf nicht vor dem 01.01.2001 liegen.', | |
75 maxValue: Ext.Date.format(new Date(), 'd.m.Y') | |
76 } | |
68 }, { | 77 }, { |
69 header: 'Status', | 78 header: 'Status', |
70 flex: 1, | 79 flex: 1, |
71 dataIndex: 'id', | 80 dataIndex: 'id', |
72 renderer: function(value) { | 81 renderer: function(value) { |