-
jon
3
posts
Member since:
Aug 2013
Posted 25 Aug 2013
Link to this post
I'm binding a select like this in a listview template.
<select class="status" class="select" data-value-field="StatusName" data-text-field="Description" data-bind="events: {change: statusChangeEvent}, source: options, value: status" />
everything works fine, the selection options are bound, except when I change the selection I get an error that the object has no method 'get'.
what am I doing wrong?
thanks.
Jon
-
-
jon
3
posts
Member since:
Aug 2013
Posted 26 Aug 2013
Link to this post
Ok, so here is the solution: the array that is bound to the select must be an observable but you can't just do this:
var options = kendo.observable([{},{},{}]);
What you have to do is this:
var options = kendo.observable({ items: [{},{},{}] });
Then, change the select data-bind:
data-bind="source: options.items"
-