I have a calculated property on an object that I'm creating like this
Then I'm attaching it using mData like this
But when I try and pull up the datagrid it tells me it can't find the column. It seems as if the culprit is in here
The $.extend removes my columns from the object. Any ideas?
Object.defineProperty(batchCompleted.prototype, 'formattedStartDate', { get: function() { var start = this.start; var value = moment.utc(start).format(dateTimeFormat); return value; } });
Then I'm attaching it using mData like this
{ aTargets: [5], sTitle: 'Received', sType: "date", mData: 'formattedStartDate' },
But when I try and pull up the datagrid it tells me it can't find the column. It seems as if the culprit is in here
var aDataIn = ($.isArray(aDataSupplied)) ? aDataSupplied.slice() : $.extend( true, {}, aDataSupplied );
The $.extend removes my columns from the object. Any ideas?