My back-end prefers a null value in the primary key for adding new records, but kendo uses 0 for numeric fields. If I change the "defaultValue" for a numeric model field that is defined as the 'id' field for the model, will this cause any problems with create operations or anything else that deals with new instances of the model? Model has a "isNew" function, so it looks like things should work even if the defaultValue is changed from the normal zero value, I just wanted to be sure in the real world there won't be any nasty side-effects or anything that explicitly compares to zero instead of relying on isNew(). So:
var
dataSource =
new
kendo.data.DataSource({
schema: {
model: {
id:
"dbID"
fields:{
dbID: {type:
"number"
, defaultValue:
null
},
}
}
}
});