comparison app/view/grid/Messwert.js @ 848:ffcf8898a261

merged heads
author Dustin Demuth <dustin@intevation.de>
date Wed, 08 Jul 2015 09:48:02 +0200
parents 613ad3263e59
children 07dfcdf5b41f
comparison
equal deleted inserted replaced
847:95d40ca7bb70 848:ffcf8898a261
27 margin: '0, 5, 5, 5', 27 margin: '0, 5, 5, 5',
28 28
29 recordId: null, 29 recordId: null,
30 readOnly: true, 30 readOnly: true,
31 allowDeselect: true, 31 allowDeselect: true,
32 messgroesseStore: null,
32 33
33 initComponent: function() { 34 initComponent: function() {
34 this.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { 35 this.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
35 clicksToMoveEditor: 1, 36 clicksToMoveEditor: 1,
36 autoCancel: false, 37 autoCancel: false,
47 return false; 48 return false;
48 } 49 }
49 return true; 50 return true;
50 } 51 }
51 } 52 }
52 }); 53 });
53 54 var me = this;
54 this.plugins = [this.rowEditing]; 55 this.plugins = [this.rowEditing];
55 56
56 this.dockedItems = [{ 57 this.dockedItems = [{
57 xtype: 'toolbar', 58 xtype: 'toolbar',
58 dock: 'bottom', 59 dock: 'bottom',
79 var store = Ext.data.StoreManager.get('messgroessen'); 80 var store = Ext.data.StoreManager.get('messgroessen');
80 return store.findRecord('id', value, 0, false, false, true).get('messgroesse'); 81 return store.findRecord('id', value, 0, false, false, true).get('messgroesse');
81 }, 82 },
82 editor: { 83 editor: {
83 xtype: 'combobox', 84 xtype: 'combobox',
84 store: Ext.data.StoreManager.get('messgroessen'), 85 store: me.messgroesseStore,
85 displayField: 'messgroesse', 86 displayField: 'messgroesse',
86 valueField: 'id', 87 valueField: 'id',
87 allowBlank: false, 88 allowBlank: false,
88 editable: true, 89 editable: true,
89 forceSelection: true, 90 forceSelection: true,

http://lada.wald.intevation.org