25 var source = { |
25 var source = { |
26 datatype: "json", |
26 datatype: "json", |
27 cache: false, |
27 cache: false, |
28 datafields: [ |
28 datafields: [ |
29 { name: 'record', type: 'number' }, |
29 { name: 'record', type: 'number' }, |
30 { name: 'pname', type: 'string' }, |
30 { name: 'name', type: 'string' }, |
31 { name: 'code', type: 'string' }, |
31 { name: 'code', type: 'string' }, |
32 { name: 'birth', type: 'string' }, |
32 { name: 'birth', type: 'string' }, |
33 { name: 'stage', type: 'string' }, |
33 { name: 'stage', type: 'string' }, |
34 ], |
34 ], |
35 id: 'record', |
35 id: 'record', |
59 filterable: true, |
59 filterable: true, |
60 filtermode: 'excel', |
60 filtermode: 'excel', |
61 columns: [ |
61 columns: [ |
62 { text: 'Datum', datafield: 'birth', width: 120 }, |
62 { text: 'Datum', datafield: 'birth', width: 120 }, |
63 { text: 'Code', datafield: 'code', width: 120 }, |
63 { text: 'Code', datafield: 'code', width: 120 }, |
64 { text: 'Naam', datafield: 'pname' }, |
64 { text: 'Naam', datafield: 'name' }, |
65 { text: 'Fase', datafield: 'stage', width: 130 }, |
65 { text: 'Fase', datafield: 'stage', width: 130 }, |
66 { text: 'Wijzig', datafield: 'Edit', width: 120, align: 'center', columntype: 'button', cellsrenderer: function () { |
66 { text: 'Wijzig', datafield: 'Edit', width: 120, align: 'center', columntype: 'button', cellsrenderer: function () { |
67 return "Wijzig"; |
67 return "Wijzig"; |
68 }, buttonclick: function (row) { |
68 }, buttonclick: function (row) { |
69 var datarecord = dataAdapter.records[row]; |
69 var datarecord = dataAdapter.records[row]; |