comparison app/controller/grid/Messmethode.js @ 765:62721a75d31d

A draft on how the Nuklide could be selected... maybe this path can be used
author Dustin Demuth <dustin@intevation.de>
date Fri, 08 May 2015 16:12:01 +0200
parents ba8c0e754979
children 31eaed998531
comparison
equal deleted inserted replaced
764:ba8c0e754979 765:62721a75d31d
86 var nuklide = record.get('messgroessen'); 86 var nuklide = record.get('messgroessen');
87 var store = Ext.data.StoreManager.get('messgroessen'); 87 var store = Ext.data.StoreManager.get('messgroessen');
88 if (!store) { 88 if (!store) {
89 store = Ext.create('Lada.store.Messgroessen'); 89 store = Ext.create('Lada.store.Messgroessen');
90 } 90 }
91 //get selection model
92 var selectedRecords = [];
93 //iterate store and slecet all records which are in nuklide array
94 store.each(function(record){
95 //TODO if(record.get('id') in nuklide){
96 selectedRecords.push(record);
97 //TODO}
98 });
91 ngrid.setData(store); 99 ngrid.setData(store);
100
101 var selModel = ngrid.getSelectionModel();
102 console.log(selModel);
103 selModel.select(selectedRecords, false, false);
92 }, 104 },
93 105
94 /** 106 /**
95 * This function adds a new row 107 * This function adds a new row
96 */ 108 */

http://lada.wald.intevation.org