Mercurial > lada > lada-client
changeset 851:c89d6de27fd3
merged.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 08 Jul 2015 12:42:19 +0200 |
parents | 43f3a53d07d3 (diff) ffcf8898a261 (current diff) |
children | 405810eda690 |
files | |
diffstat | 1 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/widget/Deskriptor.js Wed Jul 08 09:48:02 2015 +0200 +++ b/app/view/widget/Deskriptor.js Wed Jul 08 12:42:19 2015 +0200 @@ -12,19 +12,25 @@ Ext.define('Lada.view.widget.Deskriptor', { extend: 'Lada.view.widget.base.ComboBox', alias: 'widget.deskriptor', - displayField: 'beschreibung', + displayField: 'id', valueField: 'id', // Enable filtering of comboboxes triggerAction: 'all', typeAhead: false, layer: null, - queryMode: 'local', + queryMode: 'remote', + remoteFilter: true, + tpl: Ext.create('Ext.XTemplate', + '<tpl for="."><div class="x-combo-list-item x-boundlist-item" >' + + '{sn} - {beschreibung}</div></tpl>'), + displayTpl: Ext.create('Ext.XTemplate', + '<tpl for=".">{sn} - {beschreibung}</tpl>'), + listeners: { - expand: { + focus: { fn: function(field) { if (field.up('deskriptor').layer === 0) { field.store.proxy.extraParams = {'layer': field.up('deskriptor').layer}; - field.store.load(); } else { var parents = field.up('deskriptor').getParents(this);