comparison app/view/grid/MKommentar.js @ 664:6fe3cef53e74

Field Validity in MKommentar Grid
author Dustin Demuth <dustin@intevation.de>
date Thu, 19 Mar 2015 11:25:38 +0100
parents 13e5473d1af5
children 612f4f933083
comparison
equal deleted inserted replaced
663:1c5a4b419149 664:6fe3cef53e74
54 editor: { 54 editor: {
55 xtype: 'combobox', 55 xtype: 'combobox',
56 store: Ext.data.StoreManager.get('messstellen'), 56 store: Ext.data.StoreManager.get('messstellen'),
57 displayField: 'messStelle', 57 displayField: 'messStelle',
58 valueField: 'id', 58 valueField: 'id',
59 allowBlank: false 59 allowBlank: false,
60 editable: false,
60 } 61 }
61 }, { 62 }, {
62 header: 'Datum', 63 header: 'Datum',
63 dataIndex: 'datum', 64 dataIndex: 'datum',
64 xtype: 'datecolumn', 65 xtype: 'datecolumn',
65 format: 'd.m.Y H:i', 66 format: 'd.m.Y',
66 editor: { 67 editor: {
67 xtype: 'datefield', 68 xtype: 'datefield',
68 allowBlank: false, 69 allowBlank: false,
69 format: 'd.m.Y H:i', 70 format: 'd.m.Y',
70 maxValue: Ext.Date.format(new Date(), 'd.m.Y H:i') 71 maxValue: Ext.Date.format(new Date(), 'd.m.Y')
71 } 72 }
72 }, { 73 }, {
73 header: 'Text', 74 header: 'Text',
74 dataIndex: 'text', 75 dataIndex: 'text',
75 flex: 1, 76 flex: 1,
76 editor: { 77 editor: {
77 allowBlank: false 78 allowBlank: false,
79 maxLength: 1000,
80 enforceMaxLength: true
78 } 81 }
79 }]; 82 }];
80 this.initData(); 83 this.initData();
81 this.callParent(arguments); 84 this.callParent(arguments);
82 }, 85 },

http://lada.wald.intevation.org