Mercurial > lada > lada-client
comparison app/controller/grid/ProbeList.js @ 1111:a73726bba79c
Use custom row expander in probe list grid to display messung grid.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 17 May 2016 17:12:07 +0200 |
parents | dbd435256f77 |
children | f43635937581 |
comparison
equal
deleted
inserted
replaced
1110:4a55e665f2d1 | 1111:a73726bba79c |
---|---|
35 'probelistgrid toolbar button[action=export]': { | 35 'probelistgrid toolbar button[action=export]': { |
36 click: this.downloadFile | 36 click: this.downloadFile |
37 }, | 37 }, |
38 'probelistgrid toolbar button[action=print]': { | 38 'probelistgrid toolbar button[action=print]': { |
39 click: this.printSelection | 39 click: this.printSelection |
40 }, | |
41 'probelistgrid gridview': { | |
42 expandbody: this.expandBody, | |
43 collapsebody: this.collapseBody | |
40 } | 44 } |
41 }); | 45 }); |
42 this.callParent(arguments); | 46 this.callParent(arguments); |
43 }, | 47 }, |
44 | 48 |
336 | 340 |
337 reload: function(btn) { | 341 reload: function(btn) { |
338 if (btn === 'yes') { | 342 if (btn === 'yes') { |
339 location.reload(); | 343 location.reload(); |
340 } | 344 } |
345 }, | |
346 | |
347 expandBody: function(rowNode, record, expandRow) { | |
348 // var row = Ext.get('probe-row-' + record.get('id')); | |
349 // var messungGrid = Ext.create('Lada.view.grid.Messung', { | |
350 // recordId: record.get('id'), | |
351 // bottomBar: false, | |
352 // rowLines: true | |
353 // }); | |
354 // row.swallowEvent(['click', 'mousedown', 'mouseup', 'dblclick'], true); | |
355 // messungGrid.render(row); | |
356 }, | |
357 | |
358 collapseBody: function(rowNode, record, expandRow) { | |
359 // var element = Ext.get('probe-row-' + record.get('id')).down('div'); | |
360 // element.destroy(); | |
341 } | 361 } |
342 }); | 362 }); |