181 }); |
181 }); |
182 }, |
182 }, |
183 filterable: true, |
183 filterable: true, |
184 filtermode: 'excel', |
184 filtermode: 'excel', |
185 columns: [ |
185 columns: [ |
186 { text: 'Gist naam', datafield: 'name', width: 350 }, |
|
187 { text: 'Laboratorium', datafield: 'laboratory', width: 150 }, |
186 { text: 'Laboratorium', datafield: 'laboratory', width: 150 }, |
188 { text: 'Product ID', datafield: 'product_id', width: 120 }, |
187 { text: 'Product ID', datafield: 'product_id', width: 120 }, |
|
188 { text: 'Gist naam', datafield: 'name' }, |
189 { text: 'Type', datafield: 'type', align: 'center', cellsalign: 'center', width: 90 }, |
189 { text: 'Type', datafield: 'type', align: 'center', cellsalign: 'center', width: 90 }, |
190 { text: 'Vorm', datafield: 'form', align: 'center', cellsalign: 'center', width: 90 }, |
190 { text: 'Vorm', datafield: 'form', align: 'center', cellsalign: 'center', width: 90 }, |
191 { text: 'Vergistingsgraad', datafield: 'attenuation', width: 120, align: 'right', cellsalign: 'right', cellsformat: 'p0' }, |
191 { text: 'Vergistingsgraad', datafield: 'attenuation', width: 120, align: 'right', cellsalign: 'right', cellsformat: 'p0' }, |
192 { text: 'Voor. gr/ml', datafield: 'inventory', width: 100, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
192 { text: 'Voor. gr/ml', datafield: 'inventory', width: 100, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
193 { text: 'Prijs kg/l', datafield: 'cost', width: 100, align: 'right', cellsalign: 'right', cellsformat: 'c2' }, |
193 { text: 'Prijs kg/l', datafield: 'cost', width: 100, align: 'right', cellsalign: 'right', cellsformat: 'c2' }, |
194 { text: 'Wijzig', datafield: 'Edit', columntype: 'button', align: 'center', cellsrenderer: function () { |
194 { text: 'Wijzig', datafield: 'Edit', columntype: 'button', width: 120, align: 'center', cellsrenderer: function () { |
195 return "Wijzig"; |
195 return "Wijzig"; |
196 }, buttonclick: function (row) { |
196 }, buttonclick: function (row) { |
197 // open the popup window when the user clicks a button. |
197 // open the popup window when the user clicks a button. |
198 editrow = row; |
198 editrow = row; |
199 $("#popupWindow").jqxWindow({ position: { x: 230, y: 30 } }); |
199 $("#popupWindow").jqxWindow({ position: { x: 230, y: 30 } }); |