comparison app/view/widget/Probenart.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 6b0d0e62f7d7
comparison
equal deleted inserted replaced
739:efb1369a8cac 740:2e8da590ea0c
15 store: 'Probenarten', 15 store: 'Probenarten',
16 displayField: 'probenart', 16 displayField: 'probenart',
17 valueField: 'id', 17 valueField: 'id',
18 emptyText: 'Wählen Sie eine Probenart', 18 emptyText: 'Wählen Sie eine Probenart',
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('probenarten'); 26 this.store = Ext.data.StoreManager.get('probenarten');
28 if (!this.store) { 27 if (!this.store) {
29 this.store = Ext.create('Lada.store.Probenarten'); 28 this.store = Ext.create('Lada.store.Probenarten');
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