I'm getting data from a remote like so:
The remote data does not always contain the ValueE and ValueCandE fields.
Currently, all the missing fields show up as null in the models.
Why doesn't the DataSource respect my default values?
var dataSourceStatistics = new kendo.data.DataSource({ transport: { read: { data: { f:'getCustomerStats', fromDate:function () { return "2012-01-01"; }, toDate:function () { return "2012-06-19"; }, custStats:null } }, update: { } }, schema: { data: function(data) { return data.result.custStats.Record; }, total: function(data) { return data.result.custStats.Record.length; }, model:{ id: "EmployeeId", fields: { Employee: { editable: false }, EmployeeId: { editable: false }, ValueCandE: { type: "number", defaultValue: 0 }, ValueE: { type: "number", defaultValue: 0 }, ValueEandCandM: { type: "Number" }, ValueEandM: { type: "Number" } } } }});The remote data does not always contain the ValueE and ValueCandE fields.
Currently, all the missing fields show up as null in the models.
Why doesn't the DataSource respect my default values?