Basically when I do this:
dojo.declare('My.grid.MaintRenewGrid', dojox.grid.DataGrid, {
store: new dojo.data.ItemFileReadStore({url: 'get-maint-renewals.php'}),
rowSelector: '20px',
structure: [
{ field: "serial_number", width: "230px", name: "Serial Number" },
{ field: "expdate", width: "90px", name: "Maintenance Expiration Date", formatter: this.formatExpdate },
{ field: "up_cost", width: "75px", name: "Renewal Cost", formatter: My.grid.MaintRenewGrid.formatPrice },
],
formatPrice: function (val) { return (val == '' ? 'Invalid' : '$' + val); },
formatExpdate: function (val) { return (val.length ? val : 'n/a'); },
canSort: function() { return false; }
});
The formatter does not work for either column attempting to do it (using "this" or the fully qualified class name). Any suggestions?
Thanks,
Adam