comparison 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
comparison
equal deleted inserted replaced
981:2c394e72ba41 982:d8b0b23047b1
27 border: false, 27 border: false,
28 28
29 initComponent: function() { 29 initComponent: function() {
30 var i18n = Lada.getApplication().bundle; 30 var i18n = Lada.getApplication().bundle;
31 this.emptyText = i18n.getMsg('de.emptyGrid'); 31 this.emptyText = i18n.getMsg('de.emptyGrid');
32
33 this.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
34 clicksToMoveEditor: 1,
35 autoCancel: false,
36 disabled: false,
37 pluginId: 'rowedit'
38 });
39 this.plugins = [this.rowEditing];
32 40
33 // TODO: Which docked Items are required? 41 // TODO: Which docked Items are required?
34 this.dockedItems = [{ 42 this.dockedItems = [{
35 xtype: 'toolbar', 43 xtype: 'toolbar',
36 dock: 'top', 44 dock: 'top',
66 }, { 74 }, {
67 header: i18n.getMsg('daErzeugerId'), 75 header: i18n.getMsg('daErzeugerId'),
68 dataIndex: 'daErzeugerId', 76 dataIndex: 'daErzeugerId',
69 editor: { 77 editor: {
70 allowBlank: false 78 allowBlank: false
79 }
80 }, {
81 header: i18n.getMsg('bezeichnung'),
82 dataIndex: 'bezeichnung',
83 editor: {
84 xtype: 'textfield'
71 } 85 }
72 }, { 86 }, {
73 header: i18n.getMsg('mstId'), 87 header: i18n.getMsg('mstId'),
74 dataIndex: 'mstId', 88 dataIndex: 'mstId',
75 renderer: function(value) { 89 renderer: function(value) {

http://lada.wald.intevation.org