We are having difficulties data-binding the Kendo Grid with an observable array using a custom editor (dropdown) to select a data value.
It seems that the custom editor passes back the new object to the grid as expected but the new object is set to a property in the bound array.
In the example below when I add a new Promotion a new promotion is created in the bound array but the actual Promotion object is set to the Id property i.e.
Promotion.Id.Id & Promotion.Id.DisplayName.
I've created a jsfiddle example to illustrate the issue.
http://jsfiddle.net/rm18xexr/
Also if an edit button is added to the grid and a subsequent update is cancelled the Promotion is deleted from the bound data source. We have spotted various posts stating that an id: property must be defined so have ensured this is set correctly.
It seems that the custom editor passes back the new object to the grid as expected but the new object is set to a property in the bound array.
In the example below when I add a new Promotion a new promotion is created in the bound array but the actual Promotion object is set to the Id property i.e.
Promotion.Id.Id & Promotion.Id.DisplayName.
I've created a jsfiddle example to illustrate the issue.
http://jsfiddle.net/rm18xexr/
Also if an edit button is added to the grid and a subsequent update is cancelled the Promotion is deleted from the bound data source. We have spotted various posts stating that an id: property must be defined so have ensured this is set correctly.