diff app/view/grid/DatensatzErzeuger.js @ 982:d8b0b23047b1 stammdatengrids

Added GridEditor Plugin
author Dustin Demuth <dustin@intevation.de>
date Tue, 08 Dec 2015 15:58:26 +0100
parents 2c394e72ba41
children b21421ba6917
line wrap: on
line diff
--- a/app/view/grid/DatensatzErzeuger.js	Fri Dec 04 15:29:04 2015 +0100
+++ b/app/view/grid/DatensatzErzeuger.js	Tue Dec 08 15:58:26 2015 +0100
@@ -30,6 +30,14 @@
         var i18n = Lada.getApplication().bundle;
         this.emptyText = i18n.getMsg('de.emptyGrid');
 
+        this.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
+            clicksToMoveEditor: 1,
+            autoCancel: false,
+            disabled: false,
+            pluginId: 'rowedit'
+        });
+        this.plugins = [this.rowEditing];
+
         // TODO: Which docked Items are required?
         this.dockedItems = [{
             xtype: 'toolbar',
@@ -70,6 +78,12 @@
                 allowBlank: false
             }
         }, {
+            header: i18n.getMsg('bezeichnung'),
+            dataIndex: 'bezeichnung',
+            editor: {
+                xtype: 'textfield'
+            }
+        }, {
             header: i18n.getMsg('mstId'),
             dataIndex: 'mstId',
             renderer: function(value) {

http://lada.wald.intevation.org