www/js/recipes.js

changeset 67
883e897aad40
parent 66
674948226777
equal deleted inserted replaced
66:674948226777 67:883e897aad40
296 var commit = $("#fermentableGrid").jqxGrid('deleterow', id); 296 var commit = $("#fermentableGrid").jqxGrid('deleterow', id);
297 } 297 }
298 }); 298 });
299 }, 299 },
300 columns: [ 300 columns: [
301 { text: 'Mout/suiker', editable: false, datafield: 'f_name' }, 301 { text: 'Mout/suiker', editable: false, datafield: 'f_name',
302 cellsrenderer: function (row, columnfield, value, defaulthtml, columnproperties) {
303 var rowData = $("#fermentableGrid").jqxGrid('getrowdata', row);
304 return rowData.f_name + " (" + rowData.f_color + " EBC)";
305 }
306 },
302 { text: 'Type', editable: false, width: 100, datafield: 'f_type' }, 307 { text: 'Type', editable: false, width: 100, datafield: 'f_type' },
303 { text: 'Opbrengst', editable: false, datafield: 'f_yield', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'p1' }, 308 { text: 'Opbrengst', editable: false, datafield: 'f_yield', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'p1' },
304 { text: 'Gewicht', datafield: 'f_amount', width: 110, align: 'right', cellsalign: 'right', cellsformat: 'f3', 309 { text: 'Gewicht', datafield: 'f_amount', width: 110, align: 'right', cellsalign: 'right', cellsformat: 'f3',
305 columntype: 'numberinput', 310 columntype: 'numberinput',
306 validation: function (cell, value) { 311 validation: function (cell, value) {

mercurial