Mercurial > lada > lada-client
comparison app/view/FilterPanel.js @ 794:bc6bc71efb78
Preselect Proben in PPS, Preselect the first entry in the Filter Combobox
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Mon, 18 May 2015 16:17:14 +0200 |
parents | 78e73be45aaa |
children | 255568e97c96 |
comparison
equal
deleted
inserted
replaced
793:d4eb8fb99b5e | 794:bc6bc71efb78 |
---|---|
24 align: 'stretch' | 24 align: 'stretch' |
25 }; | 25 }; |
26 this.items = [{ | 26 this.items = [{ |
27 xtype: 'combobox', | 27 xtype: 'combobox', |
28 name: 'filter', | 28 name: 'filter', |
29 id: 'filter-combobox', | |
29 editable: false, | 30 editable: false, |
30 store: Ext.create('Lada.store.ProbeQueries'), | 31 store: Ext.create('Lada.store.ProbeQueries',{ |
32 listeners: { | |
33 load: function(s){ | |
34 Ext.getCmp('filter-combobox') | |
35 .select(s.getAt(0).get('id')); | |
36 } | |
37 } | |
38 }), | |
31 displayField: 'name', | 39 displayField: 'name', |
32 valueField: 'id', | 40 valueField: 'id', |
33 emptyText: 'Wählen Sie eine Abfrage' | 41 emptyText: 'Wählen Sie eine Abfrage', |
42 queryMode: 'local' | |
34 }, { | 43 }, { |
35 xtype: 'panel', | 44 xtype: 'panel', |
36 border: false, | 45 border: false, |
37 margin: '0 0 10 0', | 46 margin: '0 0 10 0', |
38 items: [{ | 47 items: [{ |