changeset 850:43f3a53d07d3

Added templates to deskriptor cbs to display the sn number and a text.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 08 Jul 2015 12:41:55 +0200
parents 8de4ec66d0e6
children c89d6de27fd3
files app/view/widget/Deskriptor.js
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/widget/Deskriptor.js	Wed Jul 08 12:40:56 2015 +0200
+++ b/app/view/widget/Deskriptor.js	Wed Jul 08 12:41:55 2015 +0200
@@ -12,7 +12,7 @@
 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',
@@ -20,6 +20,11 @@
     layer: null,
     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: {
         focus: {

http://lada.wald.intevation.org