Mercurial > lada > lada-client
comparison app/view/grid/Orte.js @ 1050:e0b5e64928c9 stammdatengrids
Use rowediting plugin for orte grid.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 01 Mar 2016 13:16:10 +0100 |
parents | 1bd4c0709bd6 |
children | 5e9a674d7bb4 |
comparison
equal
deleted
inserted
replaced
1049:1bd4c0709bd6 | 1050:e0b5e64928c9 |
---|---|
24 | 24 |
25 warnings: null, | 25 warnings: null, |
26 errors: null, | 26 errors: null, |
27 readOnly: true, | 27 readOnly: true, |
28 allowDeselect: true, | 28 allowDeselect: true, |
29 editableGrid: true, | |
29 | 30 |
30 initComponent: function() { | 31 initComponent: function() { |
31 var i18n = Lada.getApplication().bundle; | 32 var i18n = Lada.getApplication().bundle; |
32 this.emptyText = i18n.getMsg('orte.emptyGrid'); | 33 this.emptyText = i18n.getMsg('orte.emptyGrid'); |
33 | 34 |
34 this.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { | 35 if (this.editableGrid) { |
35 clicksToMoveEditor: 1, | 36 this.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { |
36 autoCancel: false, | 37 clicksToMoveEditor: 1, |
37 disabled: false, | 38 autoCancel: false, |
38 pluginId: 'rowedit' | 39 disabled: false, |
39 }); | 40 pluginId: 'rowedit' |
40 this.plugins = [this.rowEditing]; | 41 }); |
42 this.plugins = [this.rowEditing]; | |
43 } | |
41 | 44 |
42 this.columns = [{ | 45 this.columns = [{ |
43 header: i18n.getMsg('orte.ortId'), | 46 header: i18n.getMsg('orte.ortId'), |
44 dataIndex: 'ortId' | 47 dataIndex: 'ortId' |
45 }, { | 48 }, { |