Mercurial > lada > lada-client
diff 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 |
line wrap: on
line diff
--- a/app/controller/grid/ProbeList.js Tue May 17 17:10:39 2016 +0200 +++ b/app/controller/grid/ProbeList.js Tue May 17 17:12:07 2016 +0200 @@ -37,6 +37,10 @@ }, 'probelistgrid toolbar button[action=print]': { click: this.printSelection + }, + 'probelistgrid gridview': { + expandbody: this.expandBody, + collapsebody: this.collapseBody } }); this.callParent(arguments); @@ -338,5 +342,21 @@ if (btn === 'yes') { location.reload(); } + }, + + expandBody: function(rowNode, record, expandRow) { +// var row = Ext.get('probe-row-' + record.get('id')); +// var messungGrid = Ext.create('Lada.view.grid.Messung', { +// recordId: record.get('id'), +// bottomBar: false, +// rowLines: true +// }); +// row.swallowEvent(['click', 'mousedown', 'mouseup', 'dblclick'], true); +// messungGrid.render(row); + }, + + collapseBody: function(rowNode, record, expandRow) { +// var element = Ext.get('probe-row-' + record.get('id')).down('div'); +// element.destroy(); } });