comparison app/view/grid/Messung.js @ 1257:9a428be3907b

add action button in Messung grid and Ortszuordnung grid
author Michael Stanko <mstanko@bfs.de>
date Mon, 21 Nov 2016 08:07:54 +0100
parents 4270da0f7d3b
children 0e081a9badbc
comparison
equal deleted inserted replaced
1256:f961f94495c8 1257:9a428be3907b
43 icon: 'resources/img/list-remove.png', 43 icon: 'resources/img/list-remove.png',
44 action: 'delete' 44 action: 'delete'
45 }] 45 }]
46 }]; 46 }];
47 this.columns = [{ 47 this.columns = [{
48 xtype: 'actioncolumn',
49 text: '',
50 dataIndex: 'readonly',
51 sortable: false,
52 width: 30,
53 getClass: function (val, meta, rec) {
54 if (rec.get('readonly') === false) {
55 return 'edit';
56 }
57 return 'noedit';
58 },
59 handler: function(grid, rowIndex, colIndex) {
60 var rec = grid.getStore().getAt(rowIndex);
61 grid.fireEvent('itemdblclick', grid, rec);
62 }
63 }, {
48 header: 'Nebenproben-Nr.', 64 header: 'Nebenproben-Nr.',
49 dataIndex: 'nebenprobenNr', 65 dataIndex: 'nebenprobenNr',
50 flex: 1, 66 flex: 1,
51 editor: { 67 editor: {
52 allowBlank: false 68 allowBlank: false

http://lada.wald.intevation.org