comparison app/view/grid/Messmethoden.js @ 764:ba8c0e754979

Some work was done on the nuklidegrid, added a checkbox model to select the nuklide. Looks OK, but has no function right now
author Dustin Demuth <dustin@intevation.de>
date Fri, 08 May 2015 15:31:58 +0200
parents 0e8d4178bb7e
children 31eaed998531
comparison
equal deleted inserted replaced
763:0e8d4178bb7e 764:ba8c0e754979
67 icon: 'resources/img/list-remove.png', 67 icon: 'resources/img/list-remove.png',
68 action: 'delete' 68 action: 'delete'
69 }] 69 }]
70 }]; 70 }];
71 this.columns = [{ 71 this.columns = [{
72 header: 'Messmethode', 72 header: i18n.getMsg('messmethode'),
73 dataIndex: 'mmtId', 73 dataIndex: 'mmtId',
74 flex: 1, 74 flex: 1,
75 renderer: function(value) { 75 renderer: function(value) {
76 if (!value || value === '') { 76 if (!value || value === '') {
77 return ''; 77 return '';
78 } 78 }
79 var store = Ext.data.StoreManager.get('messmethoden'); 79 var store = Ext.data.StoreManager.get('messmethoden');
80 console.log(store);
81 if (!store) { 80 if (!store) {
82 store = Ext.create('Lada.store.Messmethoden'); 81 store = Ext.create('Lada.store.Messmethoden');
83 } 82 }
84 store.load();
85 console.log(store);
86 return value + " - " + store.findRecord('id', value, 0, false, false, true).get('messmethode'); 83 return value + " - " + store.findRecord('id', value, 0, false, false, true).get('messmethode');
87 }, 84 },
88 editor: { 85 editor: {
89 xtype: 'combobox', 86 xtype: 'combobox',
90 store: Ext.data.StoreManager.get('messmethoden'), 87 store: Ext.data.StoreManager.get('messmethoden'),

http://lada.wald.intevation.org