changeset 982:d8b0b23047b1 stammdatengrids

Added GridEditor Plugin
author Dustin Demuth <dustin@intevation.de>
date Tue, 08 Dec 2015 15:58:26 +0100
parents 2c394e72ba41
children 0a5fe163f1c8
files app/view/grid/DatensatzErzeuger.js app/view/grid/MessprogrammKategorie.js app/view/grid/Probenehmer.js
diffstat 3 files changed, 30 insertions(+), 0 deletions(-) [+]
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) {
--- a/app/view/grid/MessprogrammKategorie.js	Fri Dec 04 15:29:04 2015 +0100
+++ b/app/view/grid/MessprogrammKategorie.js	Tue Dec 08 15:58:26 2015 +0100
@@ -30,6 +30,14 @@
         var i18n = Lada.getApplication().bundle;
         this.emptyText = i18n.getMsg('mk.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',
--- a/app/view/grid/Probenehmer.js	Fri Dec 04 15:29:04 2015 +0100
+++ b/app/view/grid/Probenehmer.js	Tue Dec 08 15:58:26 2015 +0100
@@ -30,6 +30,14 @@
         var i18n = Lada.getApplication().bundle;
         this.emptyText = i18n.getMsg('pn.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',

http://lada.wald.intevation.org