comparison app/view/grid/Status.js @ 1044:8e579acfe0b1

Set preselected messstelle in status editor.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 25 Feb 2016 10:39:17 +0100
parents 56922c5c21fd
children 6d06ae7c553c 4270da0f7d3b
comparison
equal deleted inserted replaced
1043:91f65b9cc2fb 1044:8e579acfe0b1
102 xtype: 'combobox', 102 xtype: 'combobox',
103 store: Ext.data.StoreManager.get('messstellenFiltered'), 103 store: Ext.data.StoreManager.get('messstellenFiltered'),
104 displayField: 'messStelle', 104 displayField: 'messStelle',
105 valueField: 'id', 105 valueField: 'id',
106 allowBlank: false, 106 allowBlank: false,
107 editable: false, 107 queryMode: 'local',
108 afterRender: function() { 108 editable: false
109 this.superclass.afterRender.apply(this, arguments);
110 if (this.store.count() === 1) {
111 this.setValue(this.store.getAt(0));
112 }
113 }
114 }, 109 },
115 sortable: false 110 sortable: false
116 }, { 111 }, {
117 header: i18n.getMsg('statusgrid.header.statusStufe'), 112 header: i18n.getMsg('statusgrid.header.statusStufe'),
118 dataIndex: 'statusStufe', 113 dataIndex: 'statusStufe',

http://lada.wald.intevation.org