Mercurial > lada > lada-client
changeset 1325:35bbbfbe130c
Changed ort grid editors from custom to default comboboxes.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 03 Feb 2017 15:09:24 +0100 |
parents | 09d121acda6c |
children | 7e86f4f43907 |
files | app/view/grid/Orte.js |
diffstat | 1 files changed, 16 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/grid/Orte.js Fri Feb 03 14:41:47 2017 +0100 +++ b/app/view/grid/Orte.js Fri Feb 03 15:09:24 2017 +0100 @@ -123,7 +123,10 @@ }, { header: i18n.getMsg('orte.anlageId'), editor: { - xtype: 'kta' + xtype: 'combobox', + store: Ext.data.StoreManager.get('ktas'), + displayField: 'code', + valueField: 'id' }, renderer: function(value) { if (value === undefined || @@ -187,8 +190,10 @@ type: 'string' }, editor: { - xtype: 'koordinatenart', - allowBlank: false + xtype: 'combobox', + store: Ext.data.StoreManager.get('koordinatenart'), + displayField: 'koordinatenart', + valueField: 'id' }, renderer: function(value) { if (value === undefined || value === '') { @@ -205,7 +210,10 @@ type: 'string' }, editor: { - xtype: 'ortszusatz', + xtype: 'combobox', + store: Ext.data.StoreManager.get('ortszusatz'), + displayField: 'ozsId', + valueField: 'ozsId' }, renderer: function(value) { if (value === undefined || @@ -225,7 +233,10 @@ type: 'string' }, editor: { - xtype: 'orttyp', + xtype: 'combobox', + store: Ext.data.StoreManager.get('orttyp'), + displayField: 'code', + valueField: 'id' }, renderer: function(value) { if (value === undefined ||