comparison app/view/grid/Orte.js @ 1049:1bd4c0709bd6 stammdatengrids

Working version of selectable 'ort' in map and grid.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 01 Mar 2016 11:50:39 +0100
parents 1df6b6210b42
children e0b5e64928c9
comparison
equal deleted inserted replaced
1028:2e7adc19b4fe 1049:1bd4c0709bd6
28 allowDeselect: true, 28 allowDeselect: true,
29 29
30 initComponent: function() { 30 initComponent: function() {
31 var i18n = Lada.getApplication().bundle; 31 var i18n = Lada.getApplication().bundle;
32 this.emptyText = i18n.getMsg('orte.emptyGrid'); 32 this.emptyText = i18n.getMsg('orte.emptyGrid');
33
34 this.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
35 clicksToMoveEditor: 1,
36 autoCancel: false,
37 disabled: false,
38 pluginId: 'rowedit'
39 });
40 this.plugins = [this.rowEditing];
33 41
34 this.columns = [{ 42 this.columns = [{
35 header: i18n.getMsg('orte.ortId'), 43 header: i18n.getMsg('orte.ortId'),
36 dataIndex: 'ortId' 44 dataIndex: 'ortId'
37 }, { 45 }, {
137 store: store, 145 store: store,
138 displayInfo: true 146 displayInfo: true
139 }]); 147 }]);
140 } 148 }
141 } 149 }
150 },
151
152 selectOrt: function(map, feature) {
153 var id = feature[0].data.id;
154 var record = this.store.getById(id);
155 this.getSelectionModel().select(record);
142 } 156 }
143 }); 157 });

http://lada.wald.intevation.org