I'm looking at a case where the "defaultValue" sort of initialization of a Model may not be sufficient. I wanted to try and hook in to Model's constructor process, but I'm not quite successful. I have a little example on the dojo that sets up the Model, a DataSource that uses it with a couple rows of data, and a grid that displays it.
It tries to use the "init" event handler inherited by kendo.data.Model from kendo.Class with my custom constructor function (MyConstructor). This works in that my constructor function gets called, and I can successfully manipulate the data record (available as "this"). But something about this seems to prevent the datasource from actually finishing up initializing the records with the actual data, even if I make no actual modifications in MyConstructor(). "id" and "description" have their default values, not those from the array of data records that you see when the init constructor does not run.
I do "kendo.data.Model.call(this)" to run the parent constructor from Model - perhaps something slightly different is needed? Or is there some other proper way to hook into model construction? It is for the "create" process on for a grid, so the model instance is created and bound to the edit template all internally in kendo code before I can get ahold of it via the grid's "edit" event.