I'm working on a page where-by a user can edit an Item and a list of Versions for the item. I'm trying to use Kendo Models for this for 3 reasons:
If I bind to an array directly within my view model, all is fine:
http://jsfiddle.net/jeffdev/LwS9Z/2/
But if I bind to an array with my model, it breaks:
http://jsfiddle.net/jeffdev/LwS9Z/3/
- I'm using the Model elsewhere to bind to a Kendo Grid
- The Model easily allows me to create new records as well as edit existing records
- I am making use of the Model's dirty flag and isNew() method to determine when changes need persisting and whether or not to call the create or update method of my transport.
If I bind to an array directly within my view model, all is fine:
http://jsfiddle.net/jeffdev/LwS9Z/2/
But if I bind to an array with my model, it breaks:
http://jsfiddle.net/jeffdev/LwS9Z/3/