comparison app/view/widget/Datenbasis.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: 'Datenbasis', 15 store: 'Datenbasis',
16 displayField: 'datenbasis', 16 displayField: 'datenbasis',
17 valueField: 'id', 17 valueField: 'id',
18 emptyText: 'Wählen Sie eine Datenbasis', 18 emptyText: 'Wählen Sie eine Datenbasis',
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,
25 23
26 initComponent: function() { 24 initComponent: function() {
27 this.store = Ext.data.StoreManager.get('datenbasis'); 25 this.store = Ext.data.StoreManager.get('datenbasis');
28 if (!this.store) { 26 if (!this.store) {
29 this.store = Ext.create('Lada.store.Datenbasis'); 27 this.store = Ext.create('Lada.store.Datenbasis');
30 } 28 }
29 else {
30 this.store.clearFilter();
31 }
31 this.callParent(arguments); 32 this.callParent(arguments);
32 } 33 }
33 }); 34 });

http://lada.wald.intevation.org