comparison app/view/widget/Messmethode.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 2ad36c8db968
children
comparison
equal deleted inserted replaced
739:efb1369a8cac 740:2e8da590ea0c
15 store: 'Messmethoden', 15 store: 'Messmethoden',
16 displayField: 'display', 16 displayField: 'display',
17 valueField: 'id', 17 valueField: 'id',
18 emptyText: 'Wählen Sie eine Messmethode', 18 emptyText: 'Wählen Sie eine Messmethode',
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: true, 22 typeAhead: true,
24 minChars: 0, 23 minChars: 0,
25 layout: 'hbox', 24 layout: 'hbox',
27 initComponent: function() { 26 initComponent: function() {
28 this.store = Ext.data.StoreManager.get('messmethoden'); 27 this.store = Ext.data.StoreManager.get('messmethoden');
29 if (!this.store) { 28 if (!this.store) {
30 this.store = Ext.create('Lada.store.Messmethoden'); 29 this.store = Ext.create('Lada.store.Messmethoden');
31 } 30 }
31 else {
32 this.store.clearFilter();
33 }
32 this.callParent(arguments); 34 this.callParent(arguments);
33 } 35 }
34 }); 36 });

http://lada.wald.intevation.org