comparison app/view/grid/Probenehmer.js @ 1081:5e9a674d7bb4

Added Icon-column to stammdaten grid showing RW-status.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 13 Apr 2016 18:41:47 +0200
parents d23427c68285
children 677fc5e62055
comparison
equal deleted inserted replaced
1080:15d7b7a9e177 1081:5e9a674d7bb4
62 action: 'delete', 62 action: 'delete',
63 disabled: true // disabled on startup, will be enabled by controller if necessary 63 disabled: true // disabled on startup, will be enabled by controller if necessary
64 }] 64 }]
65 }]; 65 }];
66 this.columns = [{ 66 this.columns = [{
67 xtype: 'actioncolumn',
68 text: 'RW',
69 dataIndex: 'readonly',
70 sortable: false,
71 width: 30,
72 getClass: function (val, meta, rec) {
73 console.log(rec.get('statusEdit'));
74 if (rec.get('readonly') === false) {
75 return 'edit';
76 }
77 return 'noedit';
78 },
79 handler: function(grid, rowIndex, colIndex) {
80 var rec = grid.getStore().getAt(rowIndex);
81 grid.fireEvent('itemdblclick', grid, rec);
82 }
83 }, {
67 header: i18n.getMsg('netzbetreiberId'), 84 header: i18n.getMsg('netzbetreiberId'),
68 dataIndex: 'netzbetreiberId', 85 dataIndex: 'netzbetreiberId',
69 renderer: function(value) { 86 renderer: function(value) {
70 var r = ''; 87 var r = '';
71 if (!value || value === '') { 88 if (!value || value === '') {

http://lada.wald.intevation.org