Mercurial > lada > lada-client
comparison app/view/grid/Status.js @ 663:1c5a4b419149
Field Validity in Status Grid
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 19 Mar 2015 11:23:24 +0100 |
parents | 73b5b22a5b76 |
children | 612f4f933083 |
comparison
equal
deleted
inserted
replaced
662:7ede89336dbe | 663:1c5a4b419149 |
---|---|
71 editor: { | 71 editor: { |
72 xtype: 'combobox', | 72 xtype: 'combobox', |
73 store: Ext.data.StoreManager.get('messstellen'), | 73 store: Ext.data.StoreManager.get('messstellen'), |
74 displayField: 'messStelle', | 74 displayField: 'messStelle', |
75 valueField: 'id', | 75 valueField: 'id', |
76 allowBlank: false | 76 allowBlank: false, |
77 editable: false | |
77 } | 78 } |
78 }, { | 79 }, { |
79 header: 'Status', | 80 header: 'Status', |
80 dataIndex: 'status', | 81 dataIndex: 'status', |
81 renderer: function(value) { | 82 renderer: function(value) { |
87 editor: { | 88 editor: { |
88 xtype: 'combobox', | 89 xtype: 'combobox', |
89 store: statusStore, | 90 store: statusStore, |
90 displayField: 'display', | 91 displayField: 'display', |
91 valueField: 'id', | 92 valueField: 'id', |
92 allowBlank: false | 93 allowBlank: false, |
94 editable: false | |
93 } | 95 } |
94 }, { | 96 }, { |
95 header: 'Datum', | 97 header: 'Datum', |
96 dataIndex: 'sdatum', | 98 dataIndex: 'sdatum', |
97 xtype: 'datecolumn', | 99 xtype: 'datecolumn', |
98 format: 'd.m.Y H:i', | 100 format: 'd.m.Y', |
99 editor: { | 101 editor: { |
100 xtype: 'datefield', | 102 xtype: 'datefield', |
101 allowBlank: false, | 103 allowBlank: false, |
102 format: 'd.m.Y H:i', | 104 format: 'd.m.Y', |
103 maxValue: Ext.Date.format(new Date(), 'd.m.Y') | 105 maxValue: Ext.Date.format(new Date(), 'd.m.Y') |
104 } | 106 } |
105 }, { | 107 }, { |
106 header: 'Text', | 108 header: 'Text', |
107 dataIndex: 'skommentar', | 109 dataIndex: 'skommentar', |
108 flex: 1, | 110 flex: 1, |
109 editor: { | 111 editor: { |
110 allowBlank: true | 112 allowBlank: true, |
113 maxLength: 1000, | |
114 enforceMaxLength: true | |
111 } | 115 } |
112 }]; | 116 }]; |
113 this.initData(); | 117 this.initData(); |
114 this.callParent(arguments); | 118 this.callParent(arguments); |
115 }, | 119 }, |