comparison app/view/widget/Messeinheit.js @ 740:2e8da590ea0c

made Comboboces editable and filterable for; Messungenform: Messstelle,Datenbasis,Betriebsarts,Testdatensatz,Preobenart,Netzbetreiber Messungform: Messmethode Messwertegrid: Messgroesse,Messeinheit
author Dustin Demuth <dustin@intevation.de>
date Mon, 20 Apr 2015 16:07:40 +0200
parents d47ee7439f44
children
comparison
equal deleted inserted replaced
739:efb1369a8cac 740:2e8da590ea0c
15 store: 'Messeinheiten', 15 store: 'Messeinheiten',
16 displayField: 'einheit', 16 displayField: 'einheit',
17 valueField: 'id', 17 valueField: 'id',
18 emptyText: 'Wählen Sie eine Messeinheit', 18 emptyText: 'Wählen Sie eine Messeinheit',
19 // Enable filtering of comboboxes 19 // Enable filtering of comboboxes
20 autoSelect: false,
21 queryMode: 'local', 20 queryMode: 'local',
22 triggerAction: 'all', 21 triggerAction: 'all',
23 typeAhead: false, 22 typeAhead: false,
24 minChars: 0, 23 minChars: 0,
25 24
26 initComponent: function() { 25 initComponent: function() {
27 this.store = Ext.data.StoreManager.get('messeinheiten'); 26 this.store = Ext.data.StoreManager.get('messeinheiten');
28 if (!this.store) { 27 if (!this.store) {
29 this.store = Ext.create('Lada.store.Messeinheiten'); 28 this.store = Ext.create('Lada.store.Messeinheiten');
30 } 29 }
30 else {
31 this.store.clearFilter();
32 }
31 this.callParent(arguments); 33 this.callParent(arguments);
32 } 34 }
33 }); 35 });

http://lada.wald.intevation.org