43 $('#jqxgrid').jqxGrid({ |
43 $('#jqxgrid').jqxGrid({ |
44 width: 1280, |
44 width: 1280, |
45 height: 630, |
45 height: 630, |
46 source: dataAdapter, |
46 source: dataAdapter, |
47 theme: theme, |
47 theme: theme, |
48 showstatusbar: true, |
|
49 renderstatusbar: function(statusbar) { |
|
50 var container, addButton; |
|
51 container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>'); |
|
52 addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' + |
|
53 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Add</span></div>'); |
|
54 container.append(addButton); |
|
55 statusbar.append(container); |
|
56 addButton.jqxButton({ theme: theme, width: 90, height: 20 }); |
|
57 // add new recipe. |
|
58 addButton.click(function(event) { |
|
59 window.location.href = 'prod_new.php?return=prod_inprod.php'; |
|
60 }); |
|
61 }, |
|
62 columns: [ |
48 columns: [ |
63 { text: 'Datum', datafield: 'birth', width: 120 }, |
49 { text: 'Datum', datafield: 'birth', width: 120 }, |
64 { text: 'Code', datafield: 'code', width: 120 }, |
50 { text: 'Code', datafield: 'code', width: 120 }, |
65 { text: 'Naam', datafield: 'name' }, |
51 { text: 'Naam', datafield: 'name' }, |
66 { text: 'Fase', datafield: 'stage', width: 200, |
52 { text: 'Fase', datafield: 'stage', width: 200, |