149 width: 1280, |
149 width: 1280, |
150 height: 630, |
150 height: 630, |
151 source: dataAdapter, |
151 source: dataAdapter, |
152 theme: theme, |
152 theme: theme, |
153 showstatusbar: true, |
153 showstatusbar: true, |
154 localization: getLocalization(), |
|
155 renderstatusbar: function (statusbar) { |
154 renderstatusbar: function (statusbar) { |
156 var container = $("<div style='overflow: hidden; position: relative; margin: 5px;'></div>"); |
155 var container = $("<div style='overflow: hidden; position: relative; margin: 5px;'></div>"); |
157 var addButton = $("<div style='float: right; margin-right: 15px;'><img style='position: relative; margin-top: 2px;' src='images/add.png'/><span style='margin-left: 4px; position: relative; top: -3px;'>Nieuw</span></div>"); |
156 var addButton = $("<div style='float: right; margin-right: 15px;'><img style='position: relative; margin-top: 2px;' src='images/add.png'/><span style='margin-left: 4px; position: relative; top: -3px;'>Nieuw</span></div>"); |
158 container.append(addButton); |
157 container.append(addButton); |
159 statusbar.append(container); |
158 statusbar.append(container); |
185 { text: 'Na', datafield: 'sodium', width: 60, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
184 { text: 'Na', datafield: 'sodium', width: 60, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
186 { text: 'CaCO3', datafield: 'total_alkalinity', width: 60, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
185 { text: 'CaCO3', datafield: 'total_alkalinity', width: 60, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
187 { text: 'Cl', datafield: 'chloride', width: 60, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
186 { text: 'Cl', datafield: 'chloride', width: 60, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
188 { text: 'SO4', datafield: 'sulfate', width: 60, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
187 { text: 'SO4', datafield: 'sulfate', width: 60, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
189 { text: 'pH', datafield: 'ph', width: 60, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
188 { text: 'pH', datafield: 'ph', width: 60, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
190 { text: 'Wijzig', datafield: 'Edit', width: 100, columntype: 'button', cellsrenderer: function () { |
189 { text: '', datafield: 'Edit', width: 100, columntype: 'button', cellsrenderer: function () { |
191 return "Wijzig"; |
190 return "Wijzig"; |
192 }, buttonclick: function (row) { |
191 }, buttonclick: function (row) { |
193 // open the popup window when the user clicks a button. |
192 // open the popup window when the user clicks a button. |
194 editrow = row; |
193 editrow = row; |
195 $("#popupWindow").jqxWindow({ position: { x: 110, y: 30 } }); |
194 $("#popupWindow").jqxWindow({ position: { x: 110, y: 30 } }); |